示例#1
0
 protected function _getSearchHint($category, $cat1 = null, $cat2 = null, $cat3 = null, $cat4 = null, $Cat5 = null)
 {
     /*
     if (empty($cat2))
     {
     	return  $category;
     }
     
     if ($cat2 == '630')
     {
     	$cat2Name = 'For SALE';
     }
     else
     {
     	$cat2Name = 'For ' . $this->_business->getCat2NameById($cat2);
     }
     
     if ($cat3 == '631')
     {
     	return 'ALL ' . $cat2Name;
     }
     else
     {
     	return  $this->_business->getCat3NameById($cat3) . ' ' . $cat2Name;
     }
     */
     return parent::_getSearchHint($category, $cat1, $cat2, $cat3, $cat4, $Cat5);
 }
 public function populate(array $values)
 {
     if (array_key_exists('cat2', $values) && !empty($values['cat2'])) {
         $this->cat3->setMultiOptions($this->_business->getCat3Array($values['cat2'], false));
     }
     // Call the father's render function.
     return parent::populate($values);
 }
示例#3
0
 public function init()
 {
     parent::init();
     //$this->setAction('/refine/listings');
 }