| @@ 64-83 (lines=20) @@ | ||
| 61 | * |
|
| 62 | * @return mixed|null |
|
| 63 | */ |
|
| 64 | function __call( $method_name, $args ) { |
|
| 65 | ||
| 66 | $value = null; |
|
| 67 | ||
| 68 | do { |
|
| 69 | $value = parent::__call( $method_name, $args ); |
|
| 70 | ||
| 71 | if ( $value ) { |
|
| 72 | break; |
|
| 73 | } |
|
| 74 | ||
| 75 | if ( $this->has_marker() ) { |
|
| 76 | $value = call_user_func_array( array( $this->marker(), $method_name ), $args ); |
|
| 77 | break; |
|
| 78 | } |
|
| 79 | } while ( false ); |
|
| 80 | ||
| 81 | return $value; |
|
| 82 | ||
| 83 | } |
|
| 84 | ||
| 85 | } |
|
| 86 | ||
| @@ 54-73 (lines=20) @@ | ||
| 51 | * |
|
| 52 | * @return mixed|null |
|
| 53 | */ |
|
| 54 | function __call( $method_name, $args ) { |
|
| 55 | ||
| 56 | $value = null; |
|
| 57 | ||
| 58 | do { |
|
| 59 | $value = parent::__call( $method_name, $args ); |
|
| 60 | ||
| 61 | if ( $value ) { |
|
| 62 | break; |
|
| 63 | } |
|
| 64 | ||
| 65 | if ( $this->has_info_window() ) { |
|
| 66 | $value = call_user_func_array( array( $this->info_window(), $method_name ), $args ); |
|
| 67 | break; |
|
| 68 | } |
|
| 69 | } while ( false ); |
|
| 70 | ||
| 71 | return $value; |
|
| 72 | ||
| 73 | } |
|
| 74 | ||
| 75 | } |
|
| 76 | ||