/** * The development index handler. * * @access public * @return string The HTML code. */ public function index() { $Gallery = new Gallery(); $Award = new Award(); $this->getView()->set('Gallery', $Gallery->findItem(array('Type = ' . Gallery::DEVELOPMENT))); $this->getView()->set('Patents', $Award->findList(array('Type = ' . Award::PATENT), 'Position asc')); return $this->getView()->render(); }
/** * The index handler. * * @access public * @return string The HTML code. */ public function index() { $Award = new Award(); $params = array(); $params[] = 'Type = ' . intval(Request::get('t')); $this->getView()->set('Awards', $Award->findList($params, 'Position asc')); return $this->getView()->render(); }
/** * The function returns short HTML block for current page. * * @access public * @return string The HTML code. */ public function htmlShort() { $Page = new Content_Page(); $Page = $Page->findItem(array('Module = Controller_Frontend_Certificates')); $Award = new Award(); $Papers = $Award->findList(array('Type = ' . Award::CERTIFICATE), 'Position asc', 0, 4); return $this->getView()->htmlShort($Page, $Papers); }
/** * The support index handler. * * @access public * @return string The HTML code. */ public function index() { $Page = $this->getContentPage(); $Award = new Award(); $Faq = new Faq(); $Article = new Article(); $params = array(); $params[] = 'Type = ' . Article::ARTICLE; $params[] = 'PostedAt < ' . time(); $params[] = $Article->getParam('reference', $Page); $this->getView()->set(array('Documents' => $Page->getDocuments(), 'Faqs' => $Faq->findList(array(), 'Position asc'), 'Papers' => $Award->findList(array('Type = ' . Award::SUPPORT), 'Position asc'), 'Articles' => $Article->findList($params, 'PostedAt desc'))); return $this->getView()->render(); }