Nette\Database\Context::table PHP Метод

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

public table ( $table ) : Selection
Результат Nette\Database\Table\Selection
    public function table($table)
    {
        return new Table\Selection($this, $this->conventions, $table, $this->cacheStorage);
    }

Usage Example

 public function renderDefault()
 {
     $id = '4';
     $this->template->program = $this->database->table('posts')->order('created_at DESC')->where('id = ?', $id);
     $title = $this->database->table('posts')->get($id);
     $this->template->titulek = $title['title'];
 }
All Usage Examples Of Nette\Database\Context::table