[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * @package Joomla.Administrator 5 * @subpackage com_scheduler 6 * 7 * @copyright (C) 2021 Open Source Matters, Inc. <https://www.joomla.org> 8 * @license GNU General Public License version 2 or later; see LICENSE.txt 9 */ 10 11 namespace Joomla\Component\Scheduler\Administrator\Model; 12 13 use Joomla\CMS\Application\AdministratorApplication; 14 use Joomla\CMS\Factory; 15 use Joomla\CMS\MVC\Factory\MVCFactoryInterface; 16 use Joomla\CMS\MVC\Model\ListModel; 17 use Joomla\Component\Scheduler\Administrator\Helper\SchedulerHelper; 18 use Joomla\Component\Scheduler\Administrator\Task\TaskOption; 19 20 // phpcs:disable PSR1.Files.SideEffects 21 \defined('_JEXEC') or die; 22 // phpcs:enable PSR1.Files.SideEffects 23 24 /** 25 * The MVC Model for SelectView. 26 * 27 * @since 4.1.0 28 */ 29 class SelectModel extends ListModel 30 { 31 /** 32 * The Application object, due removal. 33 * 34 * @var AdministratorApplication 35 * @since 4.1.0 36 */ 37 protected $app; 38 39 /** 40 * SelectModel constructor. 41 * 42 * @param array $config An array of configuration options (name, state, dbo, table_path, ignore_request). 43 * @param ?MVCFactoryInterface $factory The factory. 44 * 45 * @throws \Exception 46 * @since 4.1.0 47 */ 48 public function __construct($config = array(), ?MVCFactoryInterface $factory = null) 49 { 50 $this->app = Factory::getApplication(); 51 52 parent::__construct($config, $factory); 53 } 54 55 /** 56 * @return TaskOption[] An array of TaskOption objects 57 * 58 * @throws \Exception 59 * @since 4.1.0 60 */ 61 public function getItems(): array 62 { 63 return SchedulerHelper::getTaskOptions()->options; 64 } 65 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |