<?php

/**
 * PluginEmailNotification
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @package    ##PACKAGE##
 * @subpackage ##SUBPACKAGE##
 * @author     ##NAME## <##EMAIL##>
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class PluginEmailNotification extends BaseEmailNotification {
	
	const ENABLED = 1;
	const DISABLED = 0;

	const LEAVE_ASSIGNMENT = 2;
	const LEAVE_APPLICATION = 1;
	const LEAVE_APPROVAL = 3;
	const LEAVE_CANCELLATION = 4;
	const LEAVE_REJECTION = 5;
	const PERFORMANCE_SUBMISSION = 7;

	public function getSubscriberList() {
		$label = "";
		$subscribers = $this->getEmailSubscriber();
		$label = array();
		foreach ($subscribers as $subscriber) {
			$label[] = $subscriber->getName() . " <" . $subscriber->getEmail() . ">";
		}
		$label = implode(",", $label);
		return $label;
	}

}
