%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/bitrix/www/bitrix/modules/idea/classes/general/
Upload File :
Create Path :
Current File : /home/bitrix/www/bitrix/modules/idea/classes/general/idea_notify.php

<?
Class CIdeaManagmentNotify
{
	private $arNotification = array();

	const EMAIL = 'CIdeaManagmentEmailNotify';
	const SONET = 'CIdeaManagmentSonetNotify';

	public function __construct($arNotification = array())
	{
		$this->SetNotification($arNotification);
	}

	public function SetNotification($arNotification = array())
	{
		$this->arNotification = $arNotification;
		return $this;
	}

	public function GetNotification()
	{
		return $this->arNotification;
	}

	public function GetEmailNotify()
	{
		$Activity = self::EMAIL;
		return new $Activity($this);
	}

	public function GetSonetNotify()
	{
		$Activity = self::SONET;
		return new $Activity($this);
	}

	public function GetNotify($CustomNotifyClassName)
	{
		if(class_exists($CustomNotifyClassName))
			return new $CustomNotifyClassName($this);

		return false;
	}
}
?>

Zerion Mini Shell 1.0