Exemplo n.º 1
0
 /** Display saved searches#
  * @access public
  * @return void
  */
 public function savedsearchesAction()
 {
     $allowed = array('fa', 'flos', 'admin', 'hoard', 'treasure');
     if (in_array($this->getRole(), $allowed)) {
         $private = 1;
     } else {
         $private = null;
     }
     if ($this->getParam('by') === 'me') {
         $this->view->data = $this->_searches->getAllSavedSearches($this->_helper->identity->getPerson()->id, $this->getParam('page'), $private);
     } else {
         $this->view->data = $this->_searches->getAllSavedSearches(null, $this->getParam('page'), $private);
     }
 }
Exemplo n.º 2
0
 /** Display saved searches by logged in account
  */
 public function savedAction()
 {
     $search = new Searches();
     $this->view->searches = $search->getAllSavedSearches((int) $this->getIdentityForForms(), (int) $this->_getParam('page'));
 }
Exemplo n.º 3
0
 /** Display saved searches by logged in account
  * @access public
  * @return void
  */
 public function savedAction()
 {
     $this->view->searches = $this->_searches->getAllSavedSearches($this->getIdentityForForms(), $this->getParam('page'), null);
 }