Ejemplo n.º 1
0
 /**
  * Generate the module
  */
 protected function compile()
 {
     $objPeople = \PersonModel::findBy('pid', $this->person_archiv, array('order' => 'sorting ASC'));
     $arrSize = deserialize($this->imgSize);
     if ($objPeople) {
         $strHTML = '';
         while ($objPeople->next()) {
             $objTemplate = new \FrontendTemplate($this->personTpl);
             $arrData = $this->getArrayOfPerson($objPeople, $arrSize);
             foreach ($arrData as $strName => $strValue) {
                 $objTemplate->{$strName} = $strValue;
             }
             \Controller::addImageToTemplate($objTemplate, $arrData);
             $strHTML .= $objTemplate->parse();
         }
     }
     $this->Template->strPeople = $strHTML;
 }