示例#1
0
 /**
  *
  * @param Core_Model_Visitor $visitor
  * @return array
  */
 protected function _prepareDataForSave(Core_Model_Abstract $visitor, $graceful = false, $table = false)
 {
     return array('session_id' => $this->_prepareValueForSave($visitor->getSessionId()), 'first_visit_at' => $this->_prepareValueForSave($visitor->getFirstVisitAt()), 'last_visit_at' => $this->_prepareValueForSave($visitor->getLastVisitAt()), 'last_url_id' => $visitor->getLastUrlId() ? $visitor->getLastUrlId() : 0, 'visitor_id' => $visitor->getId() ? $visitor->getId() : 0, 'website_id' => $visitor->getWebsiteId() ? $visitor->getWebsiteId() : 0);
 }