OpenSkill\Datatable\Versions\VersionEngine::getVersion PHP Метод

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

public getVersion ( ) : OpenSkill\Datatable\Versions\Version
Результат OpenSkill\Datatable\Versions\Version Will return the version that is currently selected to handle the request.
    public function getVersion()
    {
        return $this->version;
    }

Usage Example

Пример #1
0
 /**
  * Will return a default DatatableView with no columns defined, but with the view and the version prepared.
  * The user is responsible to populate the view with the wished columns, because they can not be derived from
  * the server side column configuration.
  *
  * @param string $tableView the name of the table view to render
  * @param string $scriptView the name of the script view to render
  *
  * @return DatatableView the view to work with
  */
 public function view($tableView = null, $scriptView = null)
 {
     if (is_null($tableView)) {
         $tableView = $this->versionEngine->getVersion()->tableView();
     }
     if (is_null($scriptView)) {
         $scriptView = $this->versionEngine->getVersion()->scriptView();
     }
     return new DatatableView($tableView, $scriptView, $this->viewFactory, $this->configRepository, []);
 }
All Usage Examples Of OpenSkill\Datatable\Versions\VersionEngine::getVersion