getRestParams(); if ($params) { if (count($params) > 1) { $this->_do404(); } $this->_action = 'view'; } return parent::_initAction(); } protected function getData() { $userObj = new UserObj(); return $userObj->setPrimaryKeyByAlias($this->getRestParam(0))->getDataForView(); } protected function _isItemAccessible(array $item) { return !empty($item) && $item['status'] == UserEntity::STATUS_ACTIVE; } protected function _prepareViewItem(array &$item) { $item['title'] = $item['firstName'] . ' ' . $item['lastName']; $item['config'] = $this->getConfig()->toArray(); $item['config']['itemName'] = 'Leadership List'; return parent::_prepareViewItem($item); } protected function _initDetailsPage(array $item) { Qs_Navigation::append(array('title' => $item['title'])); return parent::_initDetailsPage($item); } public function preDispatch(array &$items) { $this->_initAction(); if ('view' == $this->_action) { foreach ($items as $i => $item) { if ($item['type'] == 'HtmlBlock_') { unset($items[$i]); break; } } } return $this; } }