equal
deleted
inserted
replaced
13 * to license@zend.com so we can send you a copy immediately. |
13 * to license@zend.com so we can send you a copy immediately. |
14 * |
14 * |
15 * @category Zend |
15 * @category Zend |
16 * @package Zend_Mobile |
16 * @package Zend_Mobile |
17 * @subpackage Zend_Mobile_Push |
17 * @subpackage Zend_Mobile_Push |
18 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com) |
18 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
19 * @license http://framework.zend.com/license/new-bsd New BSD License |
19 * @license http://framework.zend.com/license/new-bsd New BSD License |
20 * @version $Id$ |
20 * @version $Id$ |
21 */ |
21 */ |
22 |
22 |
23 /** Zend_Mobile_Push_Message_Abstract **/ |
23 /** Zend_Mobile_Push_Message_Abstract **/ |
27 * Apns Message |
27 * Apns Message |
28 * |
28 * |
29 * @category Zend |
29 * @category Zend |
30 * @package Zend_Mobile |
30 * @package Zend_Mobile |
31 * @subpackage Zend_Mobile_Push |
31 * @subpackage Zend_Mobile_Push |
32 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com) |
32 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
33 * @license http://framework.zend.com/license/new-bsd New BSD License |
33 * @license http://framework.zend.com/license/new-bsd New BSD License |
34 * @version $Id$ |
34 * @version $Id$ |
35 */ |
35 */ |
36 class Zend_Mobile_Push_Message_Apns extends Zend_Mobile_Push_Message_Abstract |
36 class Zend_Mobile_Push_Message_Apns extends Zend_Mobile_Push_Message_Abstract |
37 { |
37 { |
81 } |
81 } |
82 |
82 |
83 /** |
83 /** |
84 * Set Alert |
84 * Set Alert |
85 * |
85 * |
86 * @param string $text |
86 * @param string $text |
87 * @param string $actionLocKey |
87 * @param string|null $actionLocKey |
88 * @param string $locKey |
88 * @param string|null $locKey |
89 * @param array $locArgs |
89 * @param array|null $locArgs |
90 * @param string $launchImage |
90 * @param string|null $launchImage |
|
91 * @throws Zend_Mobile_Push_Message_Exception |
91 * @return Zend_Mobile_Push_Message_Apns |
92 * @return Zend_Mobile_Push_Message_Apns |
92 */ |
93 */ |
93 public function setAlert($text, $actionLocKey=null, $locKey=null, $locArgs=null, $launchImage=null) |
94 public function setAlert($text, $actionLocKey=null, $locKey=null, $locArgs=null, $launchImage=null) |
94 { |
95 { |
95 if ($text !== null && !is_string($text)) { |
96 if ($text !== null && !is_string($text)) { |
241 } |
242 } |
242 |
243 |
243 /** |
244 /** |
244 * Set Custom Data |
245 * Set Custom Data |
245 * |
246 * |
246 * @param array $data |
247 * @param array $array |
247 * @return Zend_Mobile_Push_Message_Apns |
248 * @throws Zend_Mobile_Push_Message_Exception |
248 * @throws Zend_Mobile_Push_Message_Exception |
249 * @return Zend_Mobile_Push_Message_Apns |
249 */ |
250 */ |
250 public function setCustomData($array) |
251 public function setCustomData($array) |
251 { |
252 { |
252 $this->_custom = array(); |
253 $this->_custom = array(); |
253 foreach ($array as $k => $v) { |
254 foreach ($array as $k => $v) { |