Ejemplo n.º 1
0
 private function _getReferers()
 {
     if (is_null($this->_referersCache)) {
         $model = $this->_getParentModel();
         $rowset = $model->getRows($this->_getSelect());
         $this->_referersCache = array();
         foreach ($rowset as $row) {
             $host = parse_url($row->referer_url, PHP_URL_HOST);
             $component = Kwf_Component_Data_Root::getInstance()->getComponentById($row->component_id);
             $this->_referersCache[] = array('component' => $component, 'row' => $row, 'host' => $host, 'query' => Kwc_Advanced_SearchEngineReferer_Component::getQueryVar($row->referer_url));
         }
     }
     return $this->_referersCache;
 }
Ejemplo n.º 2
0
 public static function getSettings()
 {
     $ret = parent::getSettings();
     $ret['childModel'] = 'Kwc_Advanced_SearchEngineReferer_Referer2_Model';
     return $ret;
 }