コード例 #1
0
ファイル: alter.php プロジェクト: cedwards-reisys/nexus-web
 /** 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');
     }
 }
コード例 #2
0
ファイル: update.php プロジェクト: cedwards-reisys/nexus-web
 /** 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);
         }
     }
 }
コード例 #3
0
ファイル: method.php プロジェクト: cedwards-reisys/nexus-web
 /** 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;
 }
コード例 #4
0
ファイル: create.php プロジェクト: cedwards-reisys/nexus-web
 /** 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;
 }
コード例 #5
0
ファイル: stored.php プロジェクト: cedwards-reisys/nexus-web
 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;
 }