/** * @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; }
/** * * makeBean * @param array $resultset * @return \Application\Model\Bean\FolioImportLog */ protected function makeBean($resultset) { return FolioImportLogFactory::createFromArray($resultset); }