Esempio n. 1
0
 /**
  * action single
  *
  * @return void
  */
 public function singleAction()
 {
     // A little trick for the Persons from pages used by content_designer Ext.
     if (preg_match_all("/([0-9]{1,}):(.*),/siU", $this->settings['persons'], $m)) {
         $pList = '';
         foreach ($m[1] as $key => $uid) {
             $pList .= $uid . ',';
             $pidList[$uid] = $m[2][$key];
         }
         $this->view->assign('pidList', $pidList);
     } else {
         $pList =& $this->settings['persons'];
     }
     $persons = $this->personRepository->findByUids($pList);
     $this->view->assign('persons', $persons);
 }
 /**
  * Render method
  *
  * @param integer $uid
  * @return mixed|NULL
  */
 public function render($uid)
 {
     return $this->personRepository->findSingleByViewHelper($uid);
 }