<?php
namespace Modules\Admin\Server\Checks; class Controller extends \App\Mvc\Controller\Window\PaginatedListing\ListingAbstract { protected $listOrderingColumns = ['status', 'module', 'browser', 'cli']; protected function optionDefineParams(\App\Mvc\View\Utils\RowOptions\Option\Option $option, $selection) { switch($option->getId()){ case 'sendEmail': case 'connect': break; default: return false; } return true; } protected function optionGetEntityName($id) { return ''; } protected function actionIndex($R) { $listingParams = $this->loadListingParams($R)->getListingParams(); $class = getClassNamespace(get_class($this)).'\Model'; $model = new $class(); $view = new View_Index($this); $view->addInput('listingParams', $listingParams); $view->addInput('listingSelection', $this->getListingSelection()); $this->actionIndex_preRender($model, $view, $R); return new \Engine\Mvc\Response\Html($view->render()); } }