<?php
namespace Modules\Admin\CronJobs\Management; 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::create('viewLastExecutionLog') ->setDescription($this->lang['index']['options']['buttons']['viewLastExecutionLog']) ->setIcon("view") ->setDimensions(700, 400) ->setModule('Modules/Admin/CronJobs/Logs') ->setAction('viewMessage') ->addParamFromJs('id', 'MVC.listing.installedHandlers.listing.getItemData(this).get("lastLogId")') ) ->append(\App\Mvc\View\Utils\RowOptions\Option\Window::create("filterLogs") ->setDescription($this->lang['index']['options']['buttons']['filterLogs']) ->setIcon("filter") ->setModule('Modules/Admin/CronJobs/Logs') ->setAction('index') ->addParamFromJs('filters[cronJob]', "MVC.listing.installedHandlers.listing.getItemId(this)") ->addParam('listing[paramsSlot]', 1) ->resetWindowListing() ->setOpenInNewTab(true) ) ->append(\App\Mvc\View\Utils\RowOptions\Container\OptionEmulator::create() ->append(\App\Mvc\View\Utils\RowOptions\Option\Option::create("run") ->setDescription($this->lang['index']['options']['buttons']['run']) ->setIcon("play") ->setJsCallback("MVC.listing.installedHandlers.listing.runCurrentCronJob(this);") ) ->append(\App\Mvc\View\Utils\RowOptions\Option\Option::create("stop") ->setDescription($this->lang['index']['options']['buttons']['stop']) ->setIcon('stop') ->setJsCallback("MVC.listing.installedHandlers.listing.stopCurrentCronJob(this);") ) ) ->append(\App\Mvc\View\Utils\RowOptions\Option\Popup\Update::create("update") ->setDescription($this->lang['index']['options']['buttons']['update']) ->setDimensions(800, 600) ) ->append(\App\Mvc\View\Utils\RowOptions\Container\OptionEmulator::create() ->append(\App\Mvc\View\Utils\RowOptions\Option\Option::create("block") ->setDescription($this->lang['index']['options']['buttons']['block']) ->setIcon("lock") ->setJsCallback("MVC.listing.installedHandlers.listing.blockCurrent(this);") ) ->append(\App\Mvc\View\Utils\RowOptions\Option\Option::create("unblock") ->setDescription($this->lang['index']['options']['buttons']['unblock']) ->setIcon('unlock') ->setJsCallback("MVC.listing.installedHandlers.listing.unblockCurrent(this);") ) ) ->append(\App\Mvc\View\Utils\RowOptions\Container\OptionEmulator::create() ->setSection('bulk') ->append(\App\Mvc\View\Utils\RowOptions\Option\Option::create("block") ->setDescription($this->lang['index']['options']['buttons']['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']['buttons']['unblock']) ->setIcon('unlock') ->setJsCallback("MVC.listing.installedHandlers.listing.unblockSelected(this);") ) ) ; } } 