<?php
namespace Modules\Admin\Config\OAuth2\Clients; 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, 500) ) ->append(\App\Mvc\View\Utils\RowOptions\Container\OptionEmulator::create() ->append(\App\Mvc\View\Utils\RowOptions\Option\Popup::create("block") ->setDescription($this->lang['index']['options']['description']['block']) ->setIcon("lock") ->setJsCallback("MVC.listing.installedHandlers.listing.blockSelected(this);") ) ->append(\App\Mvc\View\Utils\RowOptions\Option\Option::create("unblock") ->setDescription($this->lang['index']['options']['description']['unblock']) ->setIcon("unlock") ->setJsCallback("MVC.listing.installedHandlers.listing.unblockSelected(this);") ) ) ->append(\App\Mvc\View\Utils\RowOptions\Option\Popup\Update::create('update') ->setDescription($this->lang['index']['options']['description']['update']) ->setDimensions(700, 500) ) ->append(\App\Mvc\View\Utils\RowOptions\Container\OptionsMenu::create("mainOptions") ->append(\App\Mvc\View\Utils\RowOptions\Option\Window::create("accessTokens") ->setLabel($this->lang['index']['options']['description']['viewAccessTokens']) ->setIcon("filter") ->setModule('Modules/Admin/Config/OAuth2/AccessTokens') ->setAction('index') ->addParamFromJs('filters[clientId]', 'MVC.listing.installedHandlers.listing.getItemData(this).get("clientId")') ->addParam('listing[paramsSlot]', 1) ->resetWindowListing() ->setOpenInNewTab(true) ) ->append(\App\Mvc\View\Utils\RowOptions\Option\Delete::create("delete") ->setLabel($this->lang['index']['options']['description']['delete']) ) ) ; } } 