CoreFiles by mySites.guru
ExecutionRuleField.php48 lines, 1,312 bytes, from Joomla_5.2.2-Stable-Full_Package.zip
Raw History Compare with 5.2.1
md5
b1a6bf65f9815acfb4e238b97b463fb0
sha1
a84b2076e5f031682f6a524165e6cb672679e405
sha256
5bd51991bf7a7e35b9cb24ddd694d2f72192aa8c234e466a01ea4b77ac02747c
<?php

/**
 * @package     Joomla.Administrator
 * @subpackage  com_scheduler
 *
 * @copyright   (C) 2021 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\Component\Scheduler\Administrator\Field;

use Joomla\CMS\Form\Field\PredefinedlistField;

// phpcs:disable PSR1.Files.SideEffects
\defined('_JEXEC') or die;
// phpcs:enable PSR1.Files.SideEffects

/**
 * A select list containing valid Cron interval types.
 *
 * @since  4.1.0
 */
class ExecutionRuleField extends PredefinedlistField
{
    /**
     * The form field type.
     *
     * @var    string
     * @since  4.1.0
     */
    protected $type = 'ExecutionRule';

    /**
     * Available execution rules.
     *
     * @var string[]
     * @since  4.1.0
     */
    protected $predefinedOptions = [
        'interval-minutes' => 'COM_SCHEDULER_EXECUTION_INTERVAL_MINUTES',
        'interval-hours'   => 'COM_SCHEDULER_EXECUTION_INTERVAL_HOURS',
        'interval-days'    => 'COM_SCHEDULER_EXECUTION_INTERVAL_DAYS',
        'interval-months'  => 'COM_SCHEDULER_EXECUTION_INTERVAL_MONTHS',
        'cron-expression'  => 'COM_SCHEDULER_EXECUTION_CRON_EXPRESSION',
        'manual'           => 'COM_SCHEDULER_OPTION_EXECUTION_MANUAL_LABEL',
    ];
}

The same content is in 225 releases, Joomla 4.2.1 to 6.2.1-rc1. See them all, or every version of this file.