Gdn_DatabaseStructure::table PHP Method

table() public method

Specifies the name of the table to create or modify.
public table ( string $Name = '', string $CharacterEncoding = '' )
$Name string The name of the table.
$CharacterEncoding string The default character encoding to specify for this table.
    public function table($Name = '', $CharacterEncoding = '')
    {
        if (!$Name) {
            return $this->_TableName;
        }
        $this->_TableName = $Name;
        if ($CharacterEncoding == '') {
            $CharacterEncoding = Gdn::config('Database.CharacterEncoding', '');
        }
        $this->_CharacterEncoding = $CharacterEncoding;
        return $this;
    }