Example #1
0
 /**
  * The Newsletter constructor. A newsletter can be constructed using the
  * constructor or using the NewsletterFactory class.
  *
  * @access	public
  * @param   integer news_id The newsletter identifier.
  * @param   SubsRetriever $subs_retriever The subscribers info retriever
  * @return	Newsletter
  * @since	0.6
  * @see     NewsletterFactory
  */
 function Newsletter($news_id, $subs_retriever = null)
 {
     parent::__construct();
     $this->set('id', $news_id);
     $this->_subs_retriever = $subs_retriever;
     $this->attributes = new JRegistry('');
 }
Example #2
0
 /**
  * The Message constructor. A message can be constructed directly using the
  * constructor or using the MessageFactory class.
  *
  * @access	public
  * @param   integer msg_id The message identifier.
  * @return	Message
  * @since	0.6
  * @see     MessageFactory
  */
 function Message($msg_id = 0)
 {
     parent::__construct();
     $this->attachment = new JRegistry('');
     $this->reported_recipients = array();
     $this->set('id', $msg_id);
 }
Example #3
0
 /**
  * The addictional Attribute constructor.
  *
  * @access	public
  * @param   integer attr_id The attribute identifier.
  * @return	Attribute
  * @since	0.7
  * @see     NewsletterFactory
  */
 function Attribute($attr_id)
 {
     parent::__construct();
     $this->set('id', $attr_id);
 }
Example #4
0
 /**
  * The Process constructor. A process can be constructed using the
  * constructor or using the loadProcess method from MessageFactory class.
  *
  * @access	public
  * @param   integer proc_id The process identifier.
  * @param   integer proc_id The message identifier.
  * @return	Process
  * @since	0.7
  * @see     MessageFactory
  */
 function Process($proc_id, $msg_id)
 {
     parent::__construct();
     $this->set('id', $proc_id);
     $this->set('msg_id', $msg_id);
 }
Example #5
0
 /**
  * The Notice constructor.
  *
  * @access	public
  * @param   integer notice_id The notice identifier.
  * @return	Notice
  * @since	0.9
  * @see     Notice
  */
 function Notice($notice_id)
 {
     parent::__construct();
     $this->set('id', $notice_id);
 }
Example #6
0
 /**
  * The SubsRetriever constructor.
  *
  * @access	public
  * @param   integer $news_id The newsletter identifier.
  * @return	SubsRetriever
  * @since	0.6
  * @see     Newsletter, NewsletterFactory
  */
 function SubsRetriever($news_id = 0)
 {
     parent::__construct();
     $this->_news_id = (int) $news_id;
 }