Location: PHPKode > scripts > DABAJAX Toolkit > dabajax-toolkit/AjaxQueries.class.php
<?php
   /**
     * AjaxQueries - this class is used to define queries and treat md5 
     *
     * @author		hide@address.com
     * @package 	easy_ajax
   **/
   class AjaxQueries {
	   private $validQueries = array();

      public function __construct() {
         // binding modules to valid queries
         
         // YOU MUST ADD YOUR QUERIES INTO THE ARRAY 
         $v[ 1 ] = "select nm_contato, telefone from wdc_contato";
         $this->valid_queries = $v;
      }
      
      public function getQuery( $id, $md5_sql ) {
         $ret = false;
         $xsql = $this->valid_queries[ $id ];
         if ( md5( $xsql ) == $md5_sql ) {
	         $ret = $xsql;
         }
         return $ret;
      }
   }
?>
Return current item: DABAJAX Toolkit