/** * @see parent::getPerm() */ function getPerm($permType) { if ($this->_id && $this->function_id) { $this->loadRefFunction(); return $this->_ref_function->getPerm($permType) && parent::getPerm($permType); } return parent::getPerm($permType); }