Gdn_DatabaseStructure::__construct PHP Method

__construct() public method

The constructor for this class. Automatically fills $this->ClassName.
public __construct ( string $Database = null )
$Database string
    public function __construct($Database = null)
    {
        parent::__construct();
        if (is_null($Database)) {
            $this->Database = Gdn::database();
        } else {
            $this->Database = $Database;
        }
        $this->databasePrefix($this->Database->DatabasePrefix);
        $this->setAlterTableThreshold(c('Database.AlterTableThreshold', 0));
        $this->reset();
    }

Usage Example

Exemplo n.º 1
0
 public function __construct($Database = NULL)
 {
     parent::__construct($Database);
 }
All Usage Examples Of Gdn_DatabaseStructure::__construct