Overview

Packages

  • blesta
    • app
      • controllers
      • models
    • components
      • auth
        • ldap
        • motp
        • oath
      • delivery
        • interfax
        • postal
          • methods
      • download
      • email
      • events
      • exchange
        • rates
          • currency
            • layer
          • fixer
          • open
            • exchange
              • rates
          • x
            • rates
      • gateway
        • payments
      • gateways
      • invoice
        • delivery
        • templates
          • perforated
            • invoice
          • quickbooks
            • invoice
          • templates
            • default
      • modules
      • net
        • amazon
          • s3
        • http
        • net
          • geo
            • ip
      • plugins
      • reports
        • aging
          • invoices
        • client
          • data
            • portability
        • custom
          • report
        • invoice
          • creation
        • package
          • revenue
        • tax
          • liability
        • transactions
          • applied
          • received
      • security
      • session
        • cart
      • settingscollection
      • upgrades
        • tasks
      • upload
      • vcard
    • core
      • Automation
        • Tasks
          • Common
          • Task
        • Type
          • Common
          • Cron
      • Pricing
        • ItemComparator
        • MetaItem
        • Modifier
          • Type
            • Description
              • Type
                • Discount
                • Option
                • Service
                • Tax
            • Discount
            • Price
            • Proration
        • Presenter
          • Build
            • Invoice
            • InvoiceData
            • Options
            • Service
            • ServiceChange
            • ServiceData
          • Collection
          • Format
            • Fields
            • Type
              • Discount
              • Item
              • Option
              • Options
              • Package
              • Pricing
              • Service
              • Tax
          • Items
            • Invoice
            • Service
          • Type
      • ServiceProviders
      • Util
        • Captcha
          • Captchas
          • Common
        • Common
          • Traits
        • Events
          • Common
          • Handlers
          • Observers
        • Filters
          • Common
        • GeoIp
        • Input
          • Fields
            • Common
        • Tax
        • Widgets
    • helpers
      • currency
        • format
      • data
        • structure
          • array
          • string
      • text
        • parser
      • widget
        • client
  • minPHP
    • helpers
      • color
      • data
        • structure
  • None
  • PHP

Classes

  • TaskFactory
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated

Class TaskFactory

Factory class for generating runnable automation tasks and cron tasks

Namespace: Blesta\Core\Automation
Package: blesta\core\Automation
Copyright: Copyright (c) 2018, Phillips Data, Inc.
License: The Blesta License Agreement
Link: Blesta
Located at core/Automation/TaskFactory.php
Methods summary
public
# __construct( Minphp\Date\Date $date )

Initialize the factory

Initialize the factory

Parameters

$date
A configured instance of \Minphp\Date\Date
public Blesta\Core\Automation\Type\Common\AutomationTypeInterface
# __call( string $name, array $arguments )

Autoload \Blesta\Core\Automation\Tasks\Task* by name

Autoload \Blesta\Core\Automation\Tasks\Task* by name

Parameters

$name
The name of the task to load
$arguments
An array of arguments to pass to the task instance constructor

Returns

Blesta\Core\Automation\Type\Common\AutomationTypeInterface
An instance of the task

Throws

BadMethodCallException
public Blesta\Core\Automation\Type\Cron\Task
# cronTask( stdClass $task, array $options = [] )

Creates a new cron task

Creates a new cron task

Parameters

$task
An stdClass object representing the cron task
$options

An array of options:

  • log_group The name of the cron log group to use for logging purposes

Returns

Blesta\Core\Automation\Type\Cron\Task
The cron task
Properties summary
protected Minphp\Date\Date $date

An instance of \Minphp\Date\Date

An instance of \Minphp\Date\Date

#
Blesta API documentation generated by ApiGen