CoreFiles by mySites.guru
ExecutionRuleField.php44 lines, 1,205 bytes, from Joomla_4.2.1-rc2-Release_Candidate-Full_Package.zip
Raw History Compare with 4.2.1-rc1
md5
d211c3100560daf41f19e26425217e20
sha1
0c68bfc8d16043dcbe895eb2ee0896204d5a98ce
sha256
2be8774a758b3fb523add7dab73c17c15fb9b75df3340e279102911bccd3aed5
<?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;

/**
 * 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 5 releases, Joomla 4.2.0-beta3 to 4.2.1-rc2. See them all, or every version of this file.