Overview

Packages

  • application
    • commands
    • components
      • actions
      • filters
      • leftWidget
      • permissions
      • sortableWidget
      • util
      • webupdater
      • x2flow
        • actions
        • triggers
      • X2GridView
      • X2Settings
    • controllers
    • models
      • embedded
    • modules
      • accounts
        • controllers
        • models
      • actions
        • controllers
        • models
      • calendar
        • controllers
        • models
      • charts
        • models
      • contacts
        • controllers
        • models
      • docs
        • components
        • controllers
        • models
      • groups
        • controllers
        • models
      • marketing
        • components
        • controllers
        • models
      • media
        • controllers
        • models
      • mobile
        • components
      • opportunities
        • controllers
        • models
      • products
        • controllers
        • models
      • quotes
        • controllers
        • models
      • services
        • controllers
        • models
      • template
        • models
      • users
        • controllers
        • models
      • workflow
        • controllers
        • models
      • x2Leads
        • controllers
        • models
  • None
  • system
    • base
    • caching
    • console
    • db
      • ar
      • schema
    • validators
    • web
      • actions
      • auth
      • helpers
      • widgets
        • captcha
        • pagers
  • zii
    • widgets
      • grid

Classes

  • DatabaseBackupAction
  • UpdaterAction
  • UpdateStageAction
  • WebUpdaterAction
  • Overview
  • Package
  • Class
  • Tree

Class WebUpdaterAction

Base action class for actions associated with the updater utility.

The updater is kept separate from the rest of the application like this to enable updating it to the latest version pre-emptively without harming any other part of the application with incompatibilities. For this reason, coupling between actions and the controller is intentionally kept very loose and limited to use of ubiquitous methods like CController::render(), with the exception of "error500" (which was in AdminController as of the switch to the new self-contained updater utility).

References to the application singleton and controller are thus accompanied by or wrapped in a slew of conditional statements for purposes of backwards compatibility.

CComponent
Extended by CAction implements IAction
Extended by WebUpdaterAction

Direct known subclasses

DatabaseBackupAction, UpdaterAction, UpdateStageAction
Abstract
Package: application\components\webupdater
Author: Demitri Morgan <demitri@x2engine.com>
Located at x2engine/protected/components/webupdater/WebUpdaterAction.php
Methods summary
public
# behaviors( )
public
# __construct( type $controller, type $id )

Override of CAction's construct; all child classes need to have the behavior UpdaterBehavior attached and enabled.

Override of CAction's construct; all child classes need to have the behavior UpdaterBehavior attached and enabled.

Parameters

$controller
type
$controller
$id
type
$id

Overrides

CAction::__construct()
public
# runUpdateUpdater( mixed $updaterCheck, mixed $redirect )

Wrapper for UpdaterBehavior::updateUpdater() that displays errors in a user-friendly way and reloads the page.

Wrapper for UpdaterBehavior::updateUpdater() that displays errors in a user-friendly way and reloads the page.

It contains hideous references to the controller (specifically, AdminController) only to avoid code duplication while at the same time remaining backwards-compatible with earlier versions (which will download AdminController, hence necessitating that AdminController have all the necessary functions for throwing errors in cases of missing dependencies that can't be auto-retrieved).

Methods inherited from CAction
getController(), getId(), runWithParams(), runWithParamsInternal()
Methods inherited from CComponent
__call(), __get(), __isset(), __set(), __unset(), asa(), attachBehavior(), attachBehaviors(), attachEventHandler(), canGetProperty(), canSetProperty(), detachBehavior(), detachBehaviors(), detachEventHandler(), disableBehavior(), disableBehaviors(), enableBehavior(), enableBehaviors(), evaluateExpression(), getEventHandlers(), hasEvent(), hasEventHandler(), hasProperty(), raiseEvent()
Magic methods inherited from CAction
run()
Magic properties inherited from CAction
$controller, $id
X2CRM Documentation API documentation generated by ApiGen 2.8.0