Example #1
0
 /**
  * Save url information
  *
  * @param   Core_Model_Visitor $visitor
  * @return  Core_Model_Resource_Visitor
  */
 protected function _saveUrlInfo(Core_Model_Abstract $visitor)
 {
     $this->_getWriteAdapter()->insert($this->tbl_url_info, array('url' => $this->_prepareValueForSave(App_Main::getHelper('core/string')->substr($visitor->getUrl(), 0, 250)), 'referer' => $this->_prepareValueForSave(App_Main::getHelper('core/string')->substr($visitor->getHttpReferer(), 0, 250))));
     $visitor->setLastUrlId($this->_getWriteAdapter()->lastInsertId());
     return $this;
 }