htmlID = $options['htmlID']; } if(isset($options['loadingID'])){ $this->loadingID = $options['loadingID']; } if(isset($options['siteUrl'])){ $this->siteUrl = $options['siteUrl']; } } public function setHtmlId($htmlID){ $this->htmlID = $htmlID; } public function setSiteUrl($siteUrl){ $this->siteUrl = $siteUrl; } public function render($bEcho = true){ $str = '
'; $str .= '
'; $str .= ' = '; $str .= ' '; $str .= ''; $str .= '
'; $str .= ''; $str .= ''; if ($bEcho) { echo $str; } else { return $str; } } public function renderScript($bEcho = true){ $str = ''; $str .= ''; $str .= ''; if ($bEcho) { echo $str; } else { return $str; } } public static function parseSegments(){ $results = array(); $segments = App::Get()->request->segments; if(isset($segments[1]) && $segments[1] != ""){ $filterParams = array(); for($index = 1; isset($segments[$index]) && $segments[$index] != ""; $index = $index + 2){ array_push($filterParams, array($segments[$index], $segments[$index + 1])); } $results['filterParams'] = $filterParams; } if(isset($segments[0]) && $segments[0] != ""){ if(intval($segments[0]) == 1){ $results['exclusive'] = array('bool'=>'or', 'checked'=>false); }else{ $results['exclusive'] = array('bool'=>'and', 'checked'=>true); } } return $results; } } ?>