Blesta
  • Package
  • Class
  • Tree
  • Deprecated

Packages

  • blesta
    • app
      • components
        • events
          • default
      • controllers
      • models
    • components
      • auth
      • delivery
        • interfax
        • postal
          • methods
      • download
      • email
      • exchange
        • rates
          • foxrate
          • google
            • finance
          • yahoo
            • finance
      • gateway
        • payments
      • gateways
      • invoice
        • delivery
        • templates
      • json
      • modules
      • net
        • http
        • net
          • amazon
            • s3
          • geo
            • ip
      • plugins
      • recaptcha
      • security
      • session
        • cart
      • settingscollection
      • upgrades
      • upload
      • vcard
    • helpers
      • currency
        • format
      • data
        • structure
          • array
          • string
      • text
        • parser
  • com
    • tecnick
      • tcpdf
        • blesta
          • components
            • invoice
              • templates
                • quickbooks
                  • invoice
                • templates
                  • default
  • Crypt
    • AES
    • DES
    • Hash
    • Random
    • RC4
    • Rijndael
    • RSA
    • TerraDES
  • File
    • ANSI
    • ASN1
    • X509
  • Math
    • BigInteger
  • minPHP
    • components
      • input
      • record
    • helpers
      • color
      • data
        • structure
      • date
      • html
      • xml
    • lib
  • Net
    • SFTP
    • SSH1
    • SSH2
  • None
  • PHP
  • PHPMailer
  • Services
    • JSON
  • Swift
    • ByteStream
    • CharacterStream
    • Encoder
    • Events
    • KeyCache
    • Mailer
    • Mime
    • Plugins
    • Transport

Classes

  • Upgrades

Class Upgrades

Handles the upgrade process to bring the current database up to the requirements of the installed files.

Model
Extended by AppModel
Extended by Upgrades
Package: blesta\components\upgrades
Copyright: Copyright (c) 2010, Phillips Data, Inc.
License: The Blesta License Agreement
Link: Blesta
Located at components/upgrades/upgrades.php

Methods summary

public
# check( mixed $from, mixed $to )

Ensure that all of the files are present to perform the upgrades

Ensure that all of the files are present to perform the upgrades

public
# start( mixed $from, mixed $to )

Starts the upgrade process, befor beginning invokes Upgrades::check() to ensure that all of the files required are present.

Starts the upgrade process, befor beginning invokes Upgrades::check() to ensure that all of the files required are present.

public
# processSql( string $file, callable $callback = null )

Processes the given SQL file, executes the given callback after each query by passing the current query number being executed and the total number of queries to be executed for that file.

Processes the given SQL file, executes the given callback after each query by passing the current query number being executed and the total number of queries to be executed for that file.

Parameters

$file
string
$file The full path to the SQL file to execute
$callback
callable
$callback The callback to execute after each query

Throws

PDOExcetion
if any query fails

Methods inherited from AppModel

_(), __construct(), boolToInt(), currencyToDecimal(), dateToUtc(), errors(), getPerPage(), ifSet(), loadCrypto(), setDefaultIfEmpty(), setPerPage(), setRulesIfSet(), strToBool(), systemDecrypt(), systemEncrypt(), systemHash(), truncateDecimal(), validateExists(), validateStateCountry()

Methods inherited from Model

affectedRows(), begin(), commit(), getConnection(), lastInsertId(), makeDSN(), prepare(), query(), rollBack(), setAttribute(), setFetchMode()

Magic methods summary

Properties summary

Properties inherited from AppModel

$replacement_keys

Blesta API documentation generated by ApiGen 2.8.0