| @@ 438-444 (lines=7) @@ | ||
| 435 | * @return EE_Form_Input_Base |
|
| 436 | * @throws EE_Error |
|
| 437 | */ |
|
| 438 | public function get_input($name, $require_construction_to_be_finalized = true) |
|
| 439 | { |
|
| 440 | $subsection = $this->get_subsection($name, $require_construction_to_be_finalized); |
|
| 441 | if (! $subsection instanceof EE_Form_Input_Base) { |
|
| 442 | throw new EE_Error( |
|
| 443 | sprintf( |
|
| 444 | __( |
|
| 445 | "Subsection '%s' is not an instanceof EE_Form_Input_Base on form '%s'. It is a '%s'", |
|
| 446 | 'event_espresso' |
|
| 447 | ), |
|
| @@ 5327-5343 (lines=17) @@ | ||
| 5324 | * @throws EE_Error |
|
| 5325 | * @return mixed whatever the plugin which calls add_filter decides |
|
| 5326 | */ |
|
| 5327 | public function __call($methodName, $args) |
|
| 5328 | { |
|
| 5329 | $className = get_class($this); |
|
| 5330 | $tagName = "FHEE__{$className}__{$methodName}"; |
|
| 5331 | if (! has_filter($tagName)) { |
|
| 5332 | throw new EE_Error( |
|
| 5333 | sprintf( |
|
| 5334 | __('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 );', |
|
| 5335 | 'event_espresso'), |
|
| 5336 | $methodName, |
|
| 5337 | $className, |
|
| 5338 | $tagName, |
|
| 5339 | '<br />' |
|
| 5340 | ) |
|
| 5341 | ); |
|
| 5342 | } |
|
| 5343 | return apply_filters($tagName, null, $this, $args); |
|
| 5344 | } |
|
| 5345 | ||
| 5346 | ||