services\ExpressionService
Time expression service.
Provides capabilities for converting a cron time expression
to and from various formats required by the application.
- 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 ExpressionService
{
- // methods
- public static Expression createExpression()
- public boolean isSimpleExpression()
- public ExpressionService hydrateSimpleForm()
- protected array _expandRanges()
Methods
protected
- _expandRanges() — Goes through the values of an expression part and expands any ranges.
public
- createExpression() — Builds expression from passed form data and returns the Expression object.
- hydrateSimpleForm() — Hydrates simple form with expression data.
- isSimpleExpression() — Tells whether the given expression is simple enough for the simple add job form to render it.