public function getCategoryItemSkuid()
 {
     $data = parent::getCategoryItemSkuid();
     if (!$data) {
         $this->_category_item_skuid = array();
         $filter = '//ul[@id="sjina_B01_05"]//div[@class="s3"]/a/@href||2';
         $this->_category_item_skuid = $this->_getRegexpInfo($filter, $this->getContent());
     }
     return $this->_category_item_skuid;
 }
Ejemplo n.º 2
0
 public function getCategoryItemSkuid()
 {
     $data = parent::getCategoryItemSkuid();
     if (!$data) {
         $this->_category_item_skuid = array();
         $filter = '//li[@class="site-topsearch"][1]/a/@href||2';
         $this->_category_item_skuid = $this->_getRegexpInfo($filter, $this->getContent());
     }
     return $this->_category_item_skuid;
 }
 public function getCategoryItemCompany()
 {
     $skuids = parent::getCategoryItemSkuid();
     $count = count($skuids);
     $str = parent::getCategoryItemCompany();
     $this->_category_item_company = array();
     if (!$str) {
         $filter = '//div[@class="bread"]/a[2]/text()||1';
         $str = $this->_getRegexpInfo($filter, $this->getContent());
         $str = str_replace("经纪人", "", $str);
     }
     for ($i = 0; $i < $count; $i++) {
         $this->_category_item_company[$i] = $str;
     }
     return $this->_category_item_company;
 }
 public function getCategoryItemCompany()
 {
     $skuids = parent::getCategoryItemSkuid();
     $count = count($skuids);
     $str = parent::getCategoryItemCompany();
     $this->_category_item_company = array();
     for ($i = 0; $i < $count; $i++) {
         $this->_category_item_company[$i] = $str;
     }
     return $this->_category_item_company;
 }