'User page', self::STATUS_CONVENTIONAL => 'Conventional page', self::STATUS_SYSTEM => 'System page', self::STATUS_ALL => 'All pages', ); return $names [$this->page_status] . $this->name; } function getUserPages ($alias = null) { $this ->where('status !=', self::STATUS_SYSTEM) ->orderby('position') ; if (isset($alias)) { $this->where('url_name', $alias); } return $this; } function getSystemPage ($name = null) { $this->where('status', self::STATUS_SYSTEM); if (isset($name)) { $this->where('name', $name); } return $this; } function hasRedirect () { return $this->link_class == Userpage_Model::LINK_REDIRECT; } function isVisible () { return $this->isVisibleOnHomePage(); } function isDisabled () { return self::STATE_DISABLED == $this->visibility; } }