Cml\Db\Base::table PHP Метод

table() публичный Метод

定义操作的表
public table ( string | array $table = '', mixed $tablePrefix = null )
$table string | array 表名 要取别名时使用 [不带前缀表名 => 别名]
$tablePrefix mixed 表前缀 不传则获取配置中配置的前缀
    public function table($table = '', $tablePrefix = null)
    {
        $hasAlias = is_array($table) ? true : false;
        is_null($tablePrefix) && ($tablePrefix = $this->tablePrefix);
        $tableName = $tablePrefix . ($hasAlias ? key($table) : $table);
        $this->table[count($this->table) . '_' . $tableName] = $hasAlias ? current($table) : null;
        return $this;
    }