@@ 4093-4109 (lines=17) @@ | ||
4090 | * @throws EE_Error |
|
4091 | * @return mixed whatever the plugin which calls add_filter decides |
|
4092 | */ |
|
4093 | public function __call($methodName,$args){ |
|
4094 | $className=get_class($this); |
|
4095 | $tagName="FHEE__{$className}__{$methodName}"; |
|
4096 | if(!has_filter($tagName)){ |
|
4097 | throw new EE_Error( |
|
4098 | sprintf( |
|
4099 | __( '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' ), |
|
4100 | $methodName, |
|
4101 | $className, |
|
4102 | $tagName, |
|
4103 | '<br />' |
|
4104 | ) |
|
4105 | ); |
|
4106 | } |
|
4107 | ||
4108 | return apply_filters($tagName,null,$this,$args); |
|
4109 | } |
|
4110 | ||
4111 | ||
4112 |
@@ 276-282 (lines=7) @@ | ||
273 | * @return EE_Form_Input_Base |
|
274 | * @throws EE_Error |
|
275 | */ |
|
276 | public function get_input($name, $require_construction_to_be_finalized = TRUE ){ |
|
277 | $subsection = $this->get_subsection($name, $require_construction_to_be_finalized); |
|
278 | if( ! $subsection instanceof EE_Form_Input_Base){ |
|
279 | 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'))); |
|
280 | } |
|
281 | return $subsection; |
|
282 | } |
|
283 | ||
284 | ||
285 |