Your IP : 216.73.216.170


Current Path : /var/www/iplanru/data/old/www/i-plan.ru/administrator/components/com_zoo/events/
Upload File :
Current File : /var/www/iplanru/data/old/www/i-plan.ru/administrator/components/com_zoo/events/application.php

<?php
/**
* @package   ZOO
* @author    YOOtheme http://www.yootheme.com
* @copyright Copyright (C) YOOtheme GmbH
* @license   http://www.gnu.org/licenses/gpl.html GNU/GPL
*/

/*
	Class: ApplicationEvent
		Application events.
*/
class ApplicationEvent {

	public static function init($event) {

		$application = $event->getSubject();

		// load site language
		if ($application->app->system->application->isSite()) {
			$application->app->system->language->load('com_zoo', $application->getPath(), null, true);
		}

	}

	public static function saved($event) {

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

	}

	public static function deleted($event) {

		$application = $event->getSubject();

	}

	public static function installed($event) {

		$application = $event->getSubject();
		$update = $event['update'];

	}

	public static function addmenuitems($event) {

		$application = $event->getSubject();

		// Tab object
		$tab = $event['tab'];

		// add child

		// return the tab object
		$event['tab'] = $tab;
	}

}