@@ 266-272 (lines=7) @@ | ||
263 | * @return EE_Form_Input_Base |
|
264 | * @throws EE_Error |
|
265 | */ |
|
266 | public function get_input($name, $require_construction_to_be_finalized = TRUE ){ |
|
267 | $subsection = $this->get_subsection($name, $require_construction_to_be_finalized); |
|
268 | if( ! $subsection instanceof EE_Form_Input_Base){ |
|
269 | throw new EE_Error(sprintf(__("Subsection '%s' is not an instanceof EE_Form_Input_Base on form '%s'. It is a '%s'", 'event_espresso'),$name, get_class($this),$subsection ? get_class($subsection) : __("NULL", 'event_espresso'))); |
|
270 | } |
|
271 | return $subsection; |
|
272 | } |
|
273 | ||
274 | ||
275 |
@@ 3970-3986 (lines=17) @@ | ||
3967 | * @throws EE_Error |
|
3968 | * @return mixed whatever the plugin which calls add_filter decides |
|
3969 | */ |
|
3970 | public function __call($methodName,$args){ |
|
3971 | $className=get_class($this); |
|
3972 | $tagName="FHEE__{$className}__{$methodName}"; |
|
3973 | if(!has_filter($tagName)){ |
|
3974 | throw new EE_Error( |
|
3975 | sprintf( |
|
3976 | __( 'Method %1$s on model %2$s does not exist! You can create one with the following code in functions.php or in a plugin: %4$s function my_callback(%4$s \$previousReturnValue, EEM_Base \$object\ $argsArray=NULL ){%4$s /*function body*/%4$s return \$whatever;%4$s }%4$s add_filter( \'%3$s\', \'my_callback\', 10, 3 );', 'event_espresso' ), |
|
3977 | $methodName, |
|
3978 | $className, |
|
3979 | $tagName, |
|
3980 | '<br />' |
|
3981 | ) |
|
3982 | ); |
|
3983 | } |
|
3984 | ||
3985 | return apply_filters($tagName,null,$this,$args); |
|
3986 | } |
|
3987 | ||
3988 | ||
3989 |