Pop\Db\Sql::getTable PHP Метод

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

Get the current table.
public getTable ( ) : string
Результат string
    public function getTable()
    {
        return $this->table;
    }

Usage Example

Пример #1
0
 /**
  * Create table in databse
  *
  * @return void
  */
 protected function createTable()
 {
     if (file_exists(__DIR__ . '/Sql/' . strtolower($this->sql->getDbType()) . '.sql')) {
         $sql = str_replace('[{table}]', $this->sql->getTable(), file_get_contents(__DIR__ . '/Sql/' . strtolower($this->sql->getDbType()) . '.sql'));
         $queries = explode(';', $sql);
         foreach ($queries as $query) {
             if (!empty($query) && $query != '') {
                 $this->sql->db()->query($query);
             }
         }
     }
 }
All Usage Examples Of Pop\Db\Sql::getTable