| @@ 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 | ||
| @@ 1841-1842 (lines=2) @@ | ||
| 1838 | */ | |
| 1839 | 	protected function _set_list_table_object() { | |
| 1840 | 		if ( isset($this->_route_config['list_table'] ) ) { | |
| 1841 | if ( !class_exists( $this->_route_config['list_table'] ) ) | |
| 1842 | 				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) ) ); | |
| 1843 | $a = new ReflectionClass($this->_route_config['list_table']); | |
| 1844 | $this->_list_table_object = $a->newInstance($this); | |
| 1845 | } | |