<?php
 namespace Modules\Admin\Users; class View_Options extends \App\Mvc\View_Window_PaginatedListing_OptionsAbstract { public function populateDefinedOptions(\App\Mvc\View\Utils\RowOptions\Container\Simple $options) { $options ->append(\App\Mvc\View\Utils\RowOptions\Option\Popup\Insert::create('insert') ->setDescription($this->lang['index']['options']['description']['insert']) ->setDimensions(700, 600) ) ->append(\App\Mvc\View\Utils\RowOptions\Option\Popup::create('userAccess') ->setDescription($this->lang['index']['options']['description']['userAccess']) ->setDimensions(900, 605) ->setIcon('noAccess') ->setModule('Modules/Admin/UserAccess') ->setAction('index') ->setKeyForCurrentRow('id') ) ->append(\App\Mvc\View\Utils\RowOptions\Option\Popup::create('blockUser') ->setDescription($this->lang['index']['options']['description']['blockUser']) ->setDimensions(600, 400) ->setIcon('lock') ->setModule('Modules/Admin/Users/BlockUser') ->setAction('index') ->setKeyForCurrentRow('idUser') ) ->append(\App\Mvc\View\Utils\RowOptions\Option\Popup\Update::create('update') ->setDescription($this->lang['index']['options']['description']['update']) ->setDimensions(700, 600) ) ->append(\App\Mvc\View\Utils\RowOptions\Container\OptionsMenu::create("mainOptions") ->append(\App\Mvc\View\Utils\RowOptions\Option\Popup::create('copyUserAccess') ->setLabel($this->lang['index']['options']['description']['copyUserAccess']) ->setIcon('noAccess') ->setAction('copyUserAccess') ->setDimensions(600, 350) ->setKeyForCurrentRow('id') ) ->append(\App\Mvc\View\Utils\RowOptions\Option\Popup::create('changePassword') ->setLabel($this->lang['index']['options']['description']['changePassword']) ->setIcon('password') ->setAction('changePassword') ->setDimensions(450, 250) ->setKeyForCurrentRow('id') ) ->append(\App\Mvc\View\Utils\RowOptions\Option\Option::create('userLogout') ->setLabel($this->lang['index']['options']['description']['logout']) ->setIcon('logoutForced') ->setJsCallback("MVC.listing.installedHandlers.listing.logoutCurrentUser(this)") ) ->append(\App\Mvc\View\Utils\RowOptions\Option\Delete::create("delete") ->setLabel($this->lang['index']['options']['description']['delete']) ) ) ->append(\App\Mvc\View\Utils\RowOptions\Option\Option::create('userLogout') ->setDescription($this->lang['index']['options']['description']['logout']) ->setIcon('logoutForced') ->setJsCallback("MVC.listing.installedHandlers.listing.logoutSelectedUsers(this)") ->setSection('bulk') ) ->append(\App\Mvc\View\Utils\RowOptions\Option\DeleteSelected::create("delete") ->setDescription($this->lang['index']['options']['description']['delete']) ) ; } } 