abstract class CFObserver in Changed Fields API 7
Same name and namespace in other branches
- 7.2 includes/changed_fields.core.inc \CFObserver
Class CFObserver.
Hierarchy
- class \CFObserver
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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CFObserver:: |
private | property | ||
CFObserver:: |
public | function | Method to get observer id. | |
CFObserver:: |
abstract public | function | Update method with info about event. | 2 |
CFObserver:: |
public | function |