Exemplo n.º 1
0
 /** standard constructor.
  *
  *		@param 	string	id of the query
  * 	@param 	mixed		the shared db object
  * 	@param	array		the user information
  *
  ***/
 public function __construct($queryid, &$db, $userinfo, $dbSlave)
 {
     parent::__construct($queryid, $db, $userinfo, $dbSlave);
     $this->query_type = self::QUERY_UPDATE;
     $this->table_query = true;
     //We need this queryid in table data
     if (!array_key_exists($this->query_id, $this->table_data)) {
         throw new Exception('invalid_query_definition');
     }
 }
Exemplo n.º 2
0
 /** standard constructor.
  *
  *		@param 	string	id of the query
  * 	@param 	mixed		the shared db object
  * 	@param	array		the user information
  *
  ***/
 public function __construct($queryid, &$db, $userinfo, $dbSlave)
 {
     parent::__construct($queryid, $db, $userinfo, $dbSlave);
     $this->query_type = self::QUERY_UPDATE;
     $this->table_query = true;
     $this->primarykey = $this->structure['key'];
     if (isset($this->structure['forcetext'])) {
         $this->forcetext = $this->structure['forcetext'];
         if (!is_array($this->forcetext)) {
             $this->forcetext = array($this->forcetext);
         }
     }
 }
Exemplo n.º 3
0
 /** standard constructor.
  *
  *		@param 	string	id of the query
  * 	@param 	mixed		the shared db object
  * 	@param	array		the user information
  *
  ***/
 public function __construct($queryid, &$db, $userinfo, $dbSlave)
 {
     parent::__construct($queryid, $db, $userinfo, $dbSlave);
     $this->query_type = self::QUERY_METHOD;
     $this->table_query = true;
 }
Exemplo n.º 4
0
 /** standard constructor.
  *
  *		@param 	string	id of the query
  * 	@param 	mixed		the shared db object
  * 	@param	array		the user information
  *
  ***/
 public function __construct($queryid, &$db, $userinfo)
 {
     parent::__construct($queryid, $db, $userinfo);
     $this->query_type = self::QUERY_UPDATE;
     $this->table_query = true;
 }
Exemplo n.º 5
0
 protected function __construct($queryid, &$db, $userinfo, $dbSlave)
 {
     parent::__construct($queryid, $db, $userinfo, $dbSlave);
     //We must first find out whether we need to use the slave database.
     $this->table_query = false;
 }