public function method_functionality($func) { if (empty($this->_method)) { $this->set_error(self::ERR_METHOD, self::s2p_t('Method not set')); return false; } if (!$this->_method->method_functionality($func)) { if ($this->_method->has_error()) { $this->copy_error($this->_method); } else { $this->set_error(self::ERR_METHOD_FUNC, self::s2p_t('Invalid method functionality'), sprintf('Invalid method functionality [%s]', $func)); } return false; } return true; }