You are here

abstract class CFObserver in Changed Fields API 7

Same name and namespace in other branches
  1. 7.2 includes/changed_fields.core.inc \CFObserver

Class CFObserver.

Hierarchy

Expanded class hierarchy of CFObserver

File

includes/changed_fields.core.inc, line 47
changed_fields.core.inc file.

View source
abstract class CFObserver {

  /**
   * @var string
   */
  private $id;

  /**
   * @param $id
   */
  public function __construct($id) {
    $this->id = $id;
  }

  /**
   * Update method with info about event.
   *
   * It is called by CFNodeSubject when node fields have been changed.
   *
   * @param CFNodeSubject $nodeSubject
   */
  public abstract function update(CFNodeSubject $nodeSubject);

  /**
   * Method to get observer id.
   */
  public function getId() {
    return $this->id;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
CFObserver::$id private property
CFObserver::getId public function Method to get observer id.
CFObserver::update abstract public function Update method with info about event. 2
CFObserver::__construct public function