Location: PHPKode > projects > Monyet > classes/entitysubject.php
<?php

//intermediate class. PHP doesnt support multiple inheritance.

Class EntitySubject Extends EntityBase{
		  
	protected $observers = array();

	//passing to the parent
	public function __construct($tb,$pk,$attr,$rf,$cond){
		parent::__construct($tb,$pk,$attr,$rf,$cond);
	}

	//register observer
	public function registerObserver($obj){
		$this->observers[] = $obj;
	}

	//notify observer
	public function notifyObservers($id){
		foreach($this->observers as $obj){
			$obj->notifyRemove($this,$id);
		}
	}
	
}

?>
Return current item: Monyet