public function isComplete() { parent::isComplete(); if (!array_key_exists('alias', $this->data) && !array_key_exists('file_id', $this->data)) { throw new \InvalidArgumentException('You need to set alias or upload file for customizedcast!'); } }
function isComplete() { parent::isComplete(); if (!array_key_exists("alias", $this->data) && !array_key_exists("file_id", $this->data)) { throw new Exception("You need to set alias or upload file for customizedcast!"); } }
function __construct($ticker, $title, $text, $device_tokens, $type = 0, $param = '') { parent::__construct(); $this->timestamp = strval(time()); $this->validation_token = md5(strtolower($this->appkey[$type]) . strtolower($this->masterSecret[$type]) . strtolower($this->timestamp)); $this->data["type"] = "unicast"; $this->data["device_tokens"] = NULL; $this->setPredefinedKeyValue("appkey", $this->appkey[$type]); $this->setPredefinedKeyValue("timestamp", $this->timestamp); $this->setPredefinedKeyValue("validation_token", $this->validation_token); $this->setPredefinedKeyValue("device_tokens", $device_tokens); $this->setPredefinedKeyValue("ticker", $ticker); $this->setPredefinedKeyValue("title", $title); $this->setPredefinedKeyValue("text", $text); $this->setPredefinedKeyValue("after_open", "go_custom"); $this->setPredefinedKeyValue("custom", $param); $this->setPredefinedKeyValue("production_mode", "true"); }
public function __construct() { parent::__construct(); $this->data['type'] = 'filecast'; $this->data['file_id'] = null; }
public function __construct() { parent::__construct(); $this->data['type'] = 'broadcast'; }
function __construct() { parent::__construct(); $this->data["type"] = "unicast"; $this->data["device_tokens"] = NULL; }
function __construct() { parent::__construct(); $this->data["type"] = "broadcast"; }
function __construct() { parent::__construct(); $this->data["type"] = "groupcast"; $this->data["filter"] = NULL; }
function __construct() { parent::__construct(); $this->data["type"] = "filecast"; $this->data["file_id"] = NULL; }
public function __construct() { parent::__construct(); $this->data['type'] = 'unicast'; $this->data['device_tokens'] = null; }
public function __construct() { parent::__construct(); $this->data['type'] = 'groupcast'; $this->data['filter'] = null; }