You are here

abstract class Decorator in Module Object Oriented Programming API 6.2

Same name and namespace in other branches
  1. 6 component/moopapi.component.inc \Decorator
  2. 7.2 component/moopapi.component.inc \Decorator
  3. 7 component/moopapi.component.inc \Decorator

Decorator.

Hierarchy

Expanded class hierarchy of Decorator

See also

http://en.wikipedia.org/wiki/Decorator_pattern

File

component/moopapi.component.inc, line 254

View source
abstract class Decorator extends Component {

  /**
   * Here the original value of decorated application is stored.
   * @var IApplication
   */
  protected $original;

  /**
   * @param IApplication $app
   */
  public function __construct($decorators_applied = array(), &$relations = array(), $app) {
    parent::__construct($decorators_applied, $relations);
    $this->original = $app;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
Component::$app_name protected property
Component::$decorators_applied protected property
Component::$id protected property
Component::$relations protected property
Component::$rltns protected property
Component::$type protected property 3
Component::ID_APPLICATION constant
Component::TYPE_CONTROLLER constant
Component::TYPE_MODEL constant
Decorator::$original protected property Here the original value of decorated application is stored.
Decorator::__construct public function Overrides Component::__construct 2