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

  • AbstractTask
  • StaffNoticeTask

Interfaces

  • LoggableInterface
  • RunnableInterface
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated

Class StaffNoticeTask

Base abstract class from which executable automation tasks may extend. Also provides for logging task output.

Blesta\Core\Automation\Tasks\Common\AbstractTask implements Blesta\Core\Automation\Tasks\Common\LoggableInterface, Blesta\Core\Automation\Tasks\Common\RunnableInterface
Extended by Blesta\Core\Automation\Tasks\Common\StaffNoticeTask

Direct known subclasses

Blesta\Core\Automation\Tasks\Task\CancelScheduledServices, Blesta\Core\Automation\Tasks\Task\ProcessRenewingServices, Blesta\Core\Automation\Tasks\Task\ProvisionPendingServices, Blesta\Core\Automation\Tasks\Task\SuspendServices, Blesta\Core\Automation\Tasks\Task\UnsuspendServices
Abstract
Namespace: Blesta\Core\Automation\Tasks\Common
Package: blesta\core\Automation\Tasks\Common
Copyright: Copyright (c) 2018, Phillips Data, Inc.
License: The Blesta License Agreement
Link: Blesta
Located at core/Automation/Tasks/Common/StaffNoticeTask.php
Methods summary
public
# __construct( Blesta\Core\Automation\Type\Common\AutomationTypeInterface $task, array $options = [] )

Initialize a new task

Initialize a new task

Parameters

$task
The raw automation task
$options

An additional options necessary for the task:

  • print_log True to print logged content to stdout, or false otherwise (default false)
  • cli True if this is being run via the Command-Line Interface, or false otherwise (default true)

Overrides

Blesta\Core\Automation\Tasks\Common\AbstractTask::__construct()
protected
# sendServiceCancelError( stdClass $service, array $errors = [] )

Sends the service cancellation error notice email to staff

Sends the service cancellation error notice email to staff

Parameters

$service
An object representing the service
$errors
A list of errors returned by the module
protected
# sendServiceCreateError( stdClass $service, array $errors = [] )

Sends the service creation error notice email to staff

Sends the service creation error notice email to staff

Parameters

$service
An object representing the service
$errors
A list of errors returned by the module
protected
# sendServiceRenewalError( stdClass $service, array $errors = [] )

Sends the service renewal error notice email to staff

Sends the service renewal error notice email to staff

Parameters

$service
An object representing the service
$errors
A list of errors returned by the module
protected
# sendServiceSuspendError( stdClass $service, array $errors = [] )

Sends the service suspension error notice email to staff

Sends the service suspension error notice email to staff

Parameters

$service
An object representing the service
$errors
A list of errors returned by the module
protected
# sendServiceUnsuspendError( stdClass $service, array $errors = [] )

Sends the service unsuspension error notice email to staff

Sends the service unsuspension error notice email to staff

Parameters

$service
An object representing the service
$errors
A list of errors returned by the module
Methods inherited from Blesta\Core\Automation\Tasks\Common\AbstractTask
isCurrentDay(), isTimeToRun(), loadLanguage(), log(), logComplete(), resetErrors(), setDate()
Methods inherited from Blesta\Core\Automation\Tasks\Common\RunnableInterface
run()
Properties inherited from Blesta\Core\Automation\Tasks\Common\AbstractTask
$date, $logger, $options, $task
Blesta API documentation generated by ApiGen