Example #1
0
 /**
  * @return \Application\Model\Bean\FolioImportLog
  */
 private function newLog(FolioImport $folioImport, $eventType)
 {
     $now = \Zend_Date::now();
     $log = FolioImportLogFactory::createFromArray(array('id_folio_import' => $folioImport->getIdFolioImport(), 'id_user' => $this->getUser()->getBean()->getIdUser(), 'date_log' => $now->get('yyyy-MM-dd HH:mm:ss'), 'event_type' => $eventType, 'note' => ''));
     $this->getCatalog('FolioImportLogCatalog')->create($log);
     return $log;
 }
Example #2
0
 /**
  *
  * makeBean
  * @param array $resultset
  * @return \Application\Model\Bean\FolioImportLog
  */
 protected function makeBean($resultset)
 {
     return FolioImportLogFactory::createFromArray($resultset);
 }