You are here

abstract class CFObserver in Changed Fields API 7.2

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

Class CFObserver.

Hierarchy

Expanded class hierarchy of CFObserver

File

includes/changed_fields.core.inc, line 71
File contains core classes and interfaces.

View source
abstract class CFObserver implements CFObserverInterface {

  /**
   * Observer unique identifier.
   *
   * @var string
   */
  private $id;

  /**
   * Observer constructor.
   *
   * @param string $id
   *   Observer unique identifier.
   */
  public function __construct($id) {
    $this->id = $id;
  }

  /**
   * {@inheritdoc}
   */
  public abstract function update(CFSubjectInterface $nodeSubject);

  /**
   * {@inheritdoc}
   */
  public function getId() {
    return $this->id;
  }

}

Members

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