/** * Creates one new xmldb_table */ function __construct($name) { parent::__construct($name); $this->fields = array(); $this->keys = array(); $this->indexes = array(); }
/** * Creates one new xmldb_index */ function __construct($name, $type = null, $fields = array()) { $this->unique = false; $this->fields = array(); parent::__construct($name); return $this->set_attributes($type, $fields); }
/** * Creates one new xmldb_statement */ function __construct($name) { parent::__construct($name); $this->table = NULL; $this->type = XMLDB_STATEMENT_INCORRECT; $this->sentences = array(); }
/** * Creates one new xmldb_structure * @param string $name */ public function __construct($name) { parent::__construct($name); $this->path = null; $this->version = null; $this->tables = array(); }
/** * Creates one new xmldb_structure */ function __construct($name) { parent::__construct($name); $this->path = NULL; $this->version = NULL; $this->tables = array(); }
/** * Creates one new xmldb_index * * @param string $name * @param string $type XMLDB_INDEX_UNIQUE, XMLDB_INDEX_NOTUNIQUE * @param array $fields an array of fieldnames to build the index over * @param array $hints an array of optional hints */ public function __construct($name, $type=null, $fields=array(), $hints=array()) { $this->unique = false; $this->fields = array(); $this->hints = array(); parent::__construct($name); $this->set_attributes($type, $fields, $hints); }
/** * Creates one new xmldb_key */ function __construct($name, $type=null, $fields=array(), $reftable=null, $reffields=null) { $this->type = NULL; $this->fields = array(); $this->reftable = NULL; $this->reffields = array(); parent::__construct($name); $this->set_attributes($type, $fields, $reftable, $reffields); }
/** * Creates one new xmldb_field */ function __construct($name, $type=null, $precision=null, $unsigned=null, $notnull=null, $sequence=null, $default=null, $previous=null) { $this->type = NULL; $this->length = NULL; $this->notnull = false; $this->default = NULL; $this->sequence = false; $this->decimals = NULL; parent::__construct($name); $this->set_attributes($type, $precision, $unsigned, $notnull, $sequence, $default, $previous); }
/** * Constructor of the xmldb_file * @param string $path */ public function __construct($path) { parent::__construct($path); $this->path = $path; $this->xmldb_structure = null; }
/** * Constructor of the xmldb_file */ function __construct($path) { parent::__construct($path); $this->path = $path; $this->xmldb_structure = NULL; }