/** * getPageContacts * @param string|array $mixedContactIds * @author Cornelius Hansjakob <*****@*****.**> * @version 1.0 */ public function getPageContacts($mixedContactIds) { try { $this->getModelContacts(); $objContacts = $this->objModelContacts->loadContactsById($mixedContactIds); return $objContacts; } catch (Exception $exc) { $this->core->logger->err($exc); } }
/** * getcontactsAction * @author Thomas Schedler <*****@*****.**> * @version 1.0 */ public function getcontactsAction() { $this->core->logger->debug('global->controllers->ElementController->getcontactsAction()'); try { $strContactIds = $this->objRequest->getParam('contactIds'); $strFieldName = $this->objRequest->getParam('fieldId'); /** * get files */ $this->getModelContacts(); $objContacts = $this->objModelContacts->loadContactsById($strContactIds); $this->view->assign('elements', $objContacts); $this->view->assign('fieldname', $strFieldName); } catch (Exception $exc) { $this->core->logger->err($exc); exit; } }