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

  • Upgrades
  • UpgradeUtil
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated

Class UpgradeUtil

Upgrade Utility that all upgrade objects must extend

Direct known subclasses

Upgrade3_0_0A4, Upgrade3_0_0A5, Upgrade3_0_3, Upgrade3_0_4, Upgrade3_1_0B1, Upgrade3_1_1, Upgrade3_1_2, Upgrade3_2_0B1, Upgrade3_2_1, Upgrade3_3_0B1, Upgrade3_3_0B2, Upgrade3_3_2, Upgrade3_0_0A6, Upgrade3_4_0, Upgrade3_4_0B1, Upgrade3_4_3, Upgrade3_5_0B1, Upgrade3_5_0B2, Upgrade3_5_0B4, Upgrade3_5_1, Upgrade3_6_0B1, Upgrade3_6_2, Upgrade4_0_0B1, Upgrade3_0_0A7, Upgrade4_0_0B2, Upgrade4_0_0B6, Upgrade4_10_0B1, Upgrade4_11_0B1, Upgrade4_12_0B1, Upgrade4_12_1, Upgrade4_1_0B1, Upgrade4_1_1, Upgrade4_2_0B1, Upgrade4_2_0B2, Upgrade3_0_0B1, Upgrade4_2_2, Upgrade4_3_0B1, Upgrade4_4_0B1, Upgrade4_5_0B1, Upgrade4_6_0, Upgrade4_6_0B1, Upgrade4_7_0B1, Upgrade4_8_0B1, Upgrade4_9_0B1, Upgrade4_9_1, Upgrade3_0_0B2, Upgrade5_0_0B1, Upgrade3_0_0B3, Upgrade3_0_0B6, Upgrade3_0_0B7, Upgrade3_0_2
Abstract
Package: blesta\components\upgrades
Copyright: Copyright (c) 2010, Phillips Data, Inc.
License: The Blesta License Agreement
Link: Blesta
Located at components/upgrades/lib/upgrade_util.php
Methods summary
abstract public
# tasks( )

Returns a numerically indexed array of tasks to execute for the upgrade process

Returns a numerically indexed array of tasks to execute for the upgrade process

Retrun

array A numerically indexed array of tasks to execute for the upgrade process
abstract public
# process( string $task )

Processes the given task

Processes the given task

Parameters

$task
The task to process
abstract public
# rollback( )

Rolls back all tasks completed for the upgrade process

Rolls back all tasks completed for the upgrade process

public
# addConfig( string $file, string $key, mixed $value )

Adds a config setting to the given file

Adds a config setting to the given file

Parameters

$file
The full path to the config file
$key
The config setting name
$value
The config setting value
public
# editConfig( string $file, string $key, mixed $value )

Updates a config setting in the given file with the given value

Updates a config setting in the given file with the given value

Parameters

$file
The full path to the config file
$key
The config setting name
$value
The config setting value
public
# mergeConfig( string $file, string $template )

Extracts all config settings from $file, merges their values into $template and writes the result back in $file.

Extracts all config settings from $file, merges their values into $template and writes the result back in $file.

Parameters

$file
The full path to the config
$template
The full path to the config template
protected string
# replaceConfig( string $key, string $value, string $contents )

Replaces a config setting within the context of a string

Replaces a config setting within the context of a string

Parameters

$key
The config key to replace the value of
$value
The new value
$contents
The context in which the $key is set

Returns

string
$contents with the given $value replaced
public mixed
# errors( )

Return all validation errors encountered

Return all validation errors encountered

Returns

mixed
Boolean false if no errors encountered, an array of errors otherwise
protected Record
# newRecord( )

Creates a new database connection

Creates a new database connection

Returns

Record
a new instance of Record
Blesta API documentation generated by ApiGen