/** * Redirects undefined callback methods or to the appropriate methods. * * @since 3.2.0 * @internal */ public function __call($sMethodName, $aArgs = null) { if ('setup_pre' === $sMethodName) { $this->_setUp(); $this->oUtil->addAndDoAction($this, "set_up_{$this->oProp->sClassName}", $this); $this->oProp->_bSetupLoaded = true; return; } if (has_filter($sMethodName)) { return isset($aArgs[0]) ? $aArgs[0] : null; } parent::__call($sMethodName, $aArgs); }
public function __call($sMethodName, $aArgs = null) { $_sPageSlug = $this->oProp->getCurrentPageSlug(); $_sTabSlug = $this->oProp->getCurrentTabSlug($_sPageSlug); $_mFirstArg = $this->oUtil->getElement($aArgs, 0); $_aKnownMethodPrefixes = array('section_pre_', 'field_pre_', 'load_pre_'); switch ($this->_getCallbackName($sMethodName, $_sPageSlug, $_aKnownMethodPrefixes)) { case 'section_pre_': return $this->_renderSectionDescription($sMethodName); case 'field_pre_': return $this->_renderSettingField($_mFirstArg, $_sPageSlug); case 'load_pre_': return $this->_doPageLoadCall($sMethodName, $_sPageSlug, $_sTabSlug, $_mFirstArg); default: return parent::__call($sMethodName, $aArgs); } }
/** * Redirects undefined callback methods. * @internal * @since 3.0.0 * @deprecated */ function ___call($sMethodName, $aArgs = null) { if (has_filter($sMethodName)) { return isset($aArgs[0]) ? $aArgs[0] : null; } return parent::__call($sMethodName, $aArgs); }