| @@ 177-181 (lines=5) @@ | ||
| 174 | case 'show_on_menu' : |
|
| 175 | $value = (int) $value; |
|
| 176 | break; |
|
| 177 | case 'admin_init_page' : |
|
| 178 | if ( in_array( 'admin_init_page', $required ) && ! $value instanceof EE_Admin_Page_Init ) { |
|
| 179 | throw new EE_Error( sprintf( __('The value for the "admin_init_page" argument must be an instance of an EE_Admin_Page_Init object. Instead %s was given as the value.', 'event_espresso'), print_r($value, TRUE) ) ); |
|
| 180 | } |
|
| 181 | break; |
|
| 182 | case 'menu_callback' : |
|
| 183 | break; |
|
| 184 | ||
| @@ 616-628 (lines=13) @@ | ||
| 613 | } |
|
| 614 | break; |
|
| 615 | // TEST #9 : verify config object |
|
| 616 | case 9 : |
|
| 617 | if ( ! $config_obj instanceof EE_Config_Base ) { |
|
| 618 | if ( $display_errors ) { |
|
| 619 | throw new EE_Error( |
|
| 620 | sprintf( |
|
| 621 | __( 'The "%s" class is not an instance of EE_Config_Base.', 'event_espresso' ), |
|
| 622 | print_r( $config_obj, true ) |
|
| 623 | ) |
|
| 624 | ); |
|
| 625 | } |
|
| 626 | return false; |
|
| 627 | } |
|
| 628 | break; |
|
| 629 | } |
|
| 630 | } |
|
| 631 | } catch ( EE_Error $e ) { |
|