Commit 4ecb987a authored by Aaron Wells's avatar Aaron Wells
Browse files

Documenting requirements of ActivityType constructors

Change-Id: I87fc9ca86d814c407203b4f2c76c83c0cba765d5
parent 27a3eadb
......@@ -568,6 +568,13 @@ abstract class ActivityType {
return $this->users;
}
/**
* NOTE: Child classes MUST call the parent constructor, AND populate
* $this->users with a list of user records which should receive the message!
*
* @param array $data The data needed to send the notification
* @param boolean $cron Indicates whether this is being called by the cron job
*/
public function __construct($data, $cron=false) {
$this->cron = $cron;
$this->set_parameters($data);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment