Location: PHPKode > scripts > Event > event/EventInfo.php
<?php

/**
 * ACE - Advanced Content Environment Framework
 *
 * LICENSE
 *
 * This is a part of ACE - Advanced Content Environment Framework,
 * any usage without permission of the author is prohibited.
 * Licence can be obtained by sending email to hide@address.com
 *
 * @category   ACE
 * @package    ACE
 * @author     Michał Szpakowski
 * @copyright  Copyright (c) 2007 Michał Szpakowski
 * @license    Limited, email hide@address.com
 */

/**
 * @category   ACE
 * @package    Event
 * @copyright  Copyright (c) 2007 Michał Szpakowski
 * @license    Limited, email hide@address.com
 */

class EventInfo
{
	private $__eventname;
	private $__access;
	private $__caller;
	private $__dataset;
	private $__disposable;
	private $__eventinterface;
	
	/**
	 * Constructor for set up read-only values.
	 *
	 * @param string $n
	 * @param int $a
	 * @param object $c
	 * @param string $d
	 * @param bool $di
	 * @param string $ei
	 */
	public function __construct($n,$a,$c,$d,$di,$ei)
	{
		$this->__eventname = $n;
		$this->__access = $a;
		$this->__caller = $c;
		$this->__dataset = $n;
		$this->__disposable = $di;
		$this->__eventinterface = $ei;		
	}
	
	/**
	 * Read only __get magic method
	 *
	 * @param string $nm
	 * @return mixed
	 */
	public function __get($nm)
	{
		switch ($nm)
		{
			case 'eventname' :
				return $this->__eventname;
			case 'access' :
				return $this->__access;
			case 'caller' :
				return $this->__caller;
			case 'dataset' :
				return $this->__dataset;
			case 'disposable' :
				return $this->__disposable;
			case 'eventinterface' :
				return $this->__eventinterface;
			default:
				return null;
		}
	}
}

?>
Return current item: Event