/** * @see XenForo_DataWriter_Node::_preSave() */ protected function _preSave() { parent::_preSave(); if ($this->get('callback_class') || $this->get('callback_method')) { $class = $this->get('callback_class'); $method = $this->get('callback_method'); if (!XenForo_Application::autoload($class) || !method_exists($class, $method)) { $this->error(new XenForo_Phrase('please_enter_valid_callback_method'), 'callback_method'); } } }
/** * @see XenForo_DataWriter_Node::_preSave() */ protected function _preSave() { parent::_preSave(); if ($this->get('callback_class') || $this->get('callback_method')) { $class = $this->get('callback_class'); $method = $this->get('callback_method'); if (!XenForo_Helper_Php::validateCallbackPhrased($class, $method, $errorPhrase)) { $this->error($errorPhrase, 'callback_method'); } } }