public function view(string $name, string $label) : TableViewAndReorderDefiner
    {
        $dataSource  = $this->finalizeTableStructure();
        $viewDefiner = new TableViewAndReorderDefiner(
                $dataSource,
                $name,
                $label,
                function (callable $reorderCallback, array $permissions = [], $actionName = null) use ($name) {
                    $this->definerReorderAction($name, $reorderCallback, $permissions, $actionName);
                }
        );

        $viewDefiner->load(IReadModule::SUMMARY_TABLE_ID_COLUMN);

        $this->viewDefiners[] = $viewDefiner;

        return $viewDefiner;
    }
public function view(string $name, string $label) : TableViewAndReorderDefiner
    {
        $dataSource  = $this->finalizeTableStructure();
        $viewDefiner = new TableViewAndReorderDefiner(
                $dataSource,
                $name,
                $label,
                function (callable $reorderCallback, array $permissions = [], $actionName = null) use ($name) {
                    $this->definerReorderAction($name, $reorderCallback, $permissions, $actionName);
                }
        );

        $viewDefiner->load(IReadModule::SUMMARY_TABLE_ID_COLUMN);

        $this->viewDefiners[] = $viewDefiner;

        return $viewDefiner;
    }
public function view ( string $ name , string $ label ) : TableViewAndReorderDefiner { $ dataSource = $ this -> finalizeTableStructure ( ) ; $ viewDefiner = new TableViewAndReorderDefiner ( $ dataSource , $ name , $ label , function ( callable $ reorderCallback , array $ permissions = [ ] , $ actionName = null ) use ( $ name ) { $ this -> definerReorderAction ( $ name , $ reorderCallback , $ permissions , $ actionName ) ; } ) ; $ viewDefiner -> load ( IReadModule :: SUMMARY_TABLE_ID_COLUMN ) ; $ this -> viewDefiners [ ] = $ viewDefiner ; return $ viewDefiner ; }
Defines a table view with the supplied name.

NOTE: This method must be called **after** the table
structure (columns) and property mappings have been defined.

@param string $name
@param string $label

@return TableViewAndReorderDefiner
Defines a table view with the supplied name .