forms\AddJob\SimpleForm
Simple form for adding a cron job.
- Author: Bogdan Ghervan <bogdan.ghervan@gmail.com>
- Copyright: 2014 Bogdan Ghervan
- License: http://opensource.org/licenses/Apache-2.0 Apache License 2.0
Synopsis
class SimpleForm
extends Form
implements
InputFilterProviderInterface
{
- // constants
- const SPECIFIC_TIME = 'specificTime';
- const EVERY_HOUR = 'everyHour';
- const EVERY_MINUTE = 'everyMinute';
- const DAILY = 'daily';
- const WEEKLY = 'weekly';
- const MONTHLY = 'monthly';
- const YEARLY = 'yearly';
- // members
- protected array $_dayOfWeekOptions = ;
- protected array $_monthOptions = ;
- protected array $_timeOptions = ;
- protected array $_repeatOptions = ;
- // methods
- public void __construct()
- public Fieldset getTimeFieldset()
- public Fieldset getRepeatFieldset()
- public Fieldset getSpecificTimeFieldset()
- public Fieldset getEveryHourFieldset()
- public Fieldset getEveryMinuteFieldset()
- public Fieldset getRepeatWeeklyFieldset()
- public Fieldset getRepeatMonthlyFieldset()
- public Fieldset getRepeatYearlyFieldset()
- public array getInputFilterSpecification()
- public boolean requireDependentTimeInputs()
- public bool requireDependentRepeatInputs()
- protected SimpleForm _markInputsAsRequired()
- // Inherited methods from Form
- public array getFormattedMessages()
- protected Form _prepareMessages()
Hierarchy
Constants
Name | Value |
---|---|
SPECIFIC_TIME | 'specificTime' |
EVERY_HOUR | 'everyHour' |
EVERY_MINUTE | 'everyMinute' |
DAILY | 'daily' |
WEEKLY | 'weekly' |
MONTHLY | 'monthly' |
YEARLY | 'yearly' |
Members
protected
- $_dayOfWeekOptions
—
array
Options of the dayOfWeek multi-checkbox field. - $_monthOptions
—
array
Options of the month select. - $_repeatOptions
—
array
Repeat select options. - $_timeOptions
—
array
Time radio set options.
Methods
protected
- _markInputsAsRequired() — Checks that a fieldset called $chosenOption exists under fieldset $pickerInputFilter, and marks all the inputs in that fieldset as required.
public
- __construct() — Form initialization.
- getEveryHourFieldset() — Builds fieldset with additional properties for the "everyHour" time picker value.
- getEveryMinuteFieldset() — Builds fieldset with additional properties for the "everyMinute" time picker value.
- getInputFilterSpecification() — Returns an array specification compatible with {@link Zend\InputFilter\Factory::createInputFilter()}.
- getRepeatFieldset() — Builds repeat fieldset and returns it.
- getRepeatMonthlyFieldset() — Builds fieldset with additional properties for the "monthly" repeat picker value.
- getRepeatWeeklyFieldset() — Builds fieldset with additional properties for the "weekly" repeat picker value.
- getRepeatYearlyFieldset() — Builds fieldset with additional properties for the "yearly" repeat picker value.
- getSpecificTimeFieldset() — Builds fieldset with additional properties for the "specificTime" time picker value.
- getTimeFieldset() — Builds time fieldset and returns it.
- requireDependentRepeatInputs() — Marks inputs related to chosen repeat option as required.
- requireDependentTimeInputs() — Marks inputs related to chosen time option as required.
Inherited from library\App\Form
protected
- _prepareMessages() — Recursively iterates through the validation error messages in the format returned by {@link Zend\Form\Form::getMessages()} and builds up a one-dimensional representation in $output.
public
- getFormattedMessages() — Retrieves validation error messages in a one-dimensional array format.