Exemplo n.º 1
0
 /**
  * @return \Application\Model\Bean\ProductPriceListLog
  */
 private function newLog(ProductPriceList $productPriceList, $eventType)
 {
     $now = \Zend_Date::now();
     $log = PriceListLogFactory::createFromArray(array('id_price_list' => $productPriceList->getIdProductPriceList(), 'id_user' => $this->getUser()->getBean()->getIdUser(), 'date_log' => $now->get('yyyy-MM-dd HH:mm:ss'), 'event_type' => $eventType, 'note' => ''));
     $this->getCatalog('PriceListLogCatalog')->create($log);
     return $log;
 }
Exemplo n.º 2
0
 /**
  *
  * makeBean
  * @param array $resultset
  * @return \Application\Model\Bean\PriceListLog
  */
 protected function makeBean($resultset)
 {
     return PriceListLogFactory::createFromArray($resultset);
 }