[ 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_actionlogs 6 * 7 * @copyright (C) 2018 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\Actionlogs\Administrator\Field; 12 13 use Joomla\CMS\Factory; 14 use Joomla\CMS\Form\Field\PredefinedlistField; 15 use Joomla\CMS\Form\Form; 16 17 // phpcs:disable PSR1.Files.SideEffects 18 \defined('_JEXEC') or die; 19 // phpcs:enable PSR1.Files.SideEffects 20 21 /** 22 * Field to show a list of range dates to sort with 23 * 24 * @since 3.9.0 25 */ 26 class LogsdaterangeField extends PredefinedlistField 27 { 28 /** 29 * The form field type. 30 * 31 * @var string 32 * @since 3.9.0 33 */ 34 protected $type = 'logsdaterange'; 35 36 /** 37 * Available options 38 * 39 * @var array 40 * @since 3.9.0 41 */ 42 protected $predefinedOptions = array( 43 'today' => 'COM_ACTIONLOGS_OPTION_RANGE_TODAY', 44 'past_week' => 'COM_ACTIONLOGS_OPTION_RANGE_PAST_WEEK', 45 'past_1month' => 'COM_ACTIONLOGS_OPTION_RANGE_PAST_1MONTH', 46 'past_3month' => 'COM_ACTIONLOGS_OPTION_RANGE_PAST_3MONTH', 47 'past_6month' => 'COM_ACTIONLOGS_OPTION_RANGE_PAST_6MONTH', 48 'past_year' => 'COM_ACTIONLOGS_OPTION_RANGE_PAST_YEAR', 49 ); 50 51 /** 52 * Method to instantiate the form field object. 53 * 54 * @param Form $form The form to attach to the form field object. 55 * 56 * @since 3.9.0 57 */ 58 public function __construct($form = null) 59 { 60 parent::__construct($form); 61 62 // Load the required language 63 $lang = Factory::getLanguage(); 64 $lang->load('com_actionlogs', JPATH_ADMINISTRATOR); 65 } 66 }
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 |