public function setBinnacleEntity(eUserLog $eUserLog) { $this->id_binnacle = $eUserLog->id; $this->info = $eUserLog->info; $this->date_time = Helper_Fecha::setFomratDate($eUserLog->date_time); $this->url = $eUserLog->url; $this->ip = $eUserLog->ip; if ($eUserLog->action == 'ACTION_DEFAULT') { $this->action = Helper_App_Log::LOG_DEFAULT; } if ($eUserLog->action == 'ACTION_LOGIN') { $this->action = Helper_App_Log::LOG_LOGIN; } if ($eUserLog->action == 'ACTION_INSERT') { $this->action = Helper_App_Log::LOG_INSERT; } if ($eUserLog->action == 'ACTION_UPDATE') { $this->action = Helper_App_Log::LOG_UPDATE; } if ($eUserLog->action == 'ACTION_DELETE') { $this->action = Helper_App_Log::LOG_DELETE; } $this->browser = $eUserLog->browser; $this->time = Helper_Fecha::getIntervalDate($eUserLog->date_time); }