<?php
/**
* @package   ZOO Component
* @file      item.php
* @version   2.4.10 June 2011
* @author    YOOtheme http://www.yootheme.com
* @copyright Copyright (C) 2007 - 2011 YOOtheme GmbH
* @license   http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
*/

/*
	Class: ItemEvent
		Item events.
*/
class ItemEvent {

	public static function init($event) {

		$item = $event->getSubject();

	}

	public static function saved($event) {

		$item = $event->getSubject();
		$new = $event['new'];

	}

	public static function deleted($event) {

		$item = $event->getSubject();

	}

	public static function stateChanged($event) {

		$item = $event->getSubject();
		$old_state = $event['old_state'];
		
	}

	public static function beforeDisplay($event) {

		$item = $event->getSubject();

	}

	public static function afterDisplay($event) {

		$item = $event->getSubject();
		$html = $event['html'];

	}

}
