/** 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'); } }
/** 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); } } }
/** 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; }
/** 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; }
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; }