@@ 1850-1851 (lines=2) @@ | ||
1847 | */ |
|
1848 | protected function _set_list_table_object() { |
|
1849 | if ( isset($this->_route_config['list_table'] ) ) { |
|
1850 | if ( !class_exists( $this->_route_config['list_table'] ) ) |
|
1851 | throw new EE_Error( sprintf( __('The %s class defined for the list table does not exist. Please check the spelling of the class ref in the $_page_config property on %s.', 'event_espresso'), $this->_route_config['list_table'], get_class($this) ) ); |
|
1852 | $a = new ReflectionClass($this->_route_config['list_table']); |
|
1853 | $this->_list_table_object = $a->newInstance($this); |
|
1854 | } |
@@ 54-56 (lines=3) @@ | ||
51 | if( ! $this->_model_name_extended){ |
|
52 | throw new EE_Error(sprintf(__("When declaring a class extension, you must define its _model_name_extended property. It should be a model name like 'Attendee' or 'Event'", "event_espresso"))); |
|
53 | } |
|
54 | if(did_action('AHEE__EE_'.$this->_model_name_extended.'__construct__end')){ |
|
55 | throw new EE_Error(sprintf(__("Hooked in model object extension '%s' too late! The model object %s has already been used!", "event_espresso"),get_class($this),$this->_model_name_extended)); |
|
56 | } |
|
57 | $this->_register_extending_methods(); |
|
58 | } |
|
59 |