Location: PHPKode > scripts > DABAJAX Toolkit > dabajax-toolkit/AjaxFilter.class.php
<?php
   /**
     * AjaxFilter - class to define filters, results and SQL query
     *
     * @author		hide@address.com
     * @package 	easy_ajax
   */
   class AjaxFilter {
      private $filters = array();
      private $results = array();
      private $sql     = "";
      
      public function addFilter( $id, $value, $type ) {
         array_push( $this->filters, $id . ';@;' . $value . ';@;' . $type );
      }
      
      public function addResult( $id ) {
         array_push( $this->results, $id );
      }
      
      public function setSql( $sql ) {
         $this->sql = $sql;
      }
      
      public function getResults() {
         return $this->results;
      }
   }
?>
Return current item: DABAJAX Toolkit