@@ -3510,7 +3510,7 @@ discard block |
||
| 3510 | 3510 | * @param string $_partID |
| 3511 | 3511 | * @param string $_type |
| 3512 | 3512 | * @return string|boolean returns the replace |
| 3513 | - */ |
|
| 3513 | + */ |
|
| 3514 | 3514 | $replace_callback = function ($matches) use ($_mailbox,$_uid, $_partID, $_type, $_link_callback) |
| 3515 | 3515 | { |
| 3516 | 3516 | if (!$_type) return false; |
@@ -3635,10 +3635,10 @@ discard block |
||
| 3635 | 3635 | try |
| 3636 | 3636 | { |
| 3637 | 3637 | $messageUid = $this->importMessageToFolder($file,$destination,$importID); |
| 3638 | - $linkData = array |
|
| 3639 | - ( |
|
| 3638 | + $linkData = array |
|
| 3639 | + ( |
|
| 3640 | 3640 | 'id' => $this->createRowID($destination, $messageUid, true), |
| 3641 | - ); |
|
| 3641 | + ); |
|
| 3642 | 3642 | } |
| 3643 | 3643 | catch (Api\Exception\WrongUserinput $e) |
| 3644 | 3644 | { |
@@ -3808,7 +3808,7 @@ discard block |
||
| 3808 | 3808 | $messageUid = $this->importMessageToFolder($formData,$draftFolder,$importID); |
| 3809 | 3809 | $linkData = array |
| 3810 | 3810 | ( |
| 3811 | - 'menuaction' => ($mode=='display'?'mail.mail_ui.displayMessage':'mail.mail_compose.composeFromDraft'), |
|
| 3811 | + 'menuaction' => ($mode=='display'?'mail.mail_ui.displayMessage':'mail.mail_compose.composeFromDraft'), |
|
| 3812 | 3812 | 'id' => $this->createRowID($draftFolder,$messageUid,true), |
| 3813 | 3813 | 'deleteDraftOnClose' => 1, |
| 3814 | 3814 | ); |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | { |
| 75 | 75 | // Saving the infolog should try to send a notification |
| 76 | 76 | $this->bo->tracking->expects($this->atLeastOnce()) |
| 77 | - ->method('track') |
|
| 77 | + ->method('track') |
|
| 78 | 78 | ->with($this->callback(function($subject) { return $subject['pm_id'] == $this->pm_id;})); |
| 79 | 79 | |
| 80 | 80 | // Mock the etemplate call to check the results |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | { |
| 113 | 113 | // Saving the infolog should try to send a notification |
| 114 | 114 | $this->bo->tracking->expects($this->exactly(2)) |
| 115 | - ->method('track') |
|
| 115 | + ->method('track') |
|
| 116 | 116 | ->withConsecutive( |
| 117 | 117 | // First call - creation |
| 118 | 118 | [$this->callback(function($subject) { return is_null($subject['pm_status']);})], |
@@ -159,7 +159,7 @@ discard block |
||
| 159 | 159 | { |
| 160 | 160 | // Saving the infolog should try to send a notification |
| 161 | 161 | $this->bo->tracking->expects($this->exactly(2)) |
| 162 | - ->method('track') |
|
| 162 | + ->method('track') |
|
| 163 | 163 | ->withConsecutive( |
| 164 | 164 | // First call - creation |
| 165 | 165 | [$this->callback(function($subject) { return is_null($subject['pm_status']);})], |
@@ -207,7 +207,7 @@ discard block |
||
| 207 | 207 | { |
| 208 | 208 | // Saving the infolog should try to send a notification |
| 209 | 209 | $this->bo->tracking->expects($this->once()) |
| 210 | - ->method('track') |
|
| 210 | + ->method('track') |
|
| 211 | 211 | ->with($this->callback(function($subject) { return $subject['pm_id'] == $this->pm_id;})); |
| 212 | 212 | |
| 213 | 213 | $info = $this->getTestInfolog(); |
@@ -242,7 +242,7 @@ discard block |
||
| 242 | 242 | { |
| 243 | 243 | // Saving the infolog should try to send a notification |
| 244 | 244 | $this->bo->tracking->expects($this->once()) |
| 245 | - ->method('track') |
|
| 245 | + ->method('track') |
|
| 246 | 246 | ->with($this->callback(function($subject) { return $subject['pm_id'] == $this->pm_id;})); |
| 247 | 247 | |
| 248 | 248 | $info = $this->getTestInfolog(); |
@@ -326,7 +326,7 @@ discard block |
||
| 326 | 326 | { |
| 327 | 327 | // Saving the infolog should try to send a notification |
| 328 | 328 | $this->bo->tracking->expects($this->once()) |
| 329 | - ->method('track') |
|
| 329 | + ->method('track') |
|
| 330 | 330 | ->will($this->returnCallback(function($subject) { return $subject['pm_id'] == $this->pm_id;})); |
| 331 | 331 | |
| 332 | 332 | $info = $this->getTestInfolog(); |
@@ -363,7 +363,7 @@ discard block |
||
| 363 | 363 | { |
| 364 | 364 | // Saving the infolog should try to send a notification |
| 365 | 365 | $this->bo->tracking->expects($this->exactly(2)) |
| 366 | - ->method('track') |
|
| 366 | + ->method('track') |
|
| 367 | 367 | ->will($this->returnCallback(function($subject) { return $subject['pm_id'] == $this->pm_id;})); |
| 368 | 368 | |
| 369 | 369 | $info = $this->getTestInfolog(); |
@@ -441,7 +441,7 @@ discard block |
||
| 441 | 441 | { |
| 442 | 442 | // Saving the infolog should try to send a notification |
| 443 | 443 | $this->bo->tracking->expects($this->exactly(2)) |
| 444 | - ->method('track') |
|
| 444 | + ->method('track') |
|
| 445 | 445 | ->withConsecutive( |
| 446 | 446 | // First call - set the project |
| 447 | 447 | [$this->callback(function($subject) { return $subject['pm_id'] == $this->pm_id;})], |
@@ -515,7 +515,7 @@ discard block |
||
| 515 | 515 | { |
| 516 | 516 | // Saving the infolog should try to send a notification |
| 517 | 517 | $this->bo->tracking->expects($this->exactly(2)) |
| 518 | - ->method('track') |
|
| 518 | + ->method('track') |
|
| 519 | 519 | ->withConsecutive( |
| 520 | 520 | // First call - set the project |
| 521 | 521 | [$this->callback(function($subject) { return $subject['pm_id'] == $this->pm_id;})], |
@@ -46,8 +46,8 @@ discard block |
||
| 46 | 46 | |
| 47 | 47 | // Make parse_participants method accessable |
| 48 | 48 | $class = new \ReflectionClass($this->import); |
| 49 | - $this->parse_method = $class->getMethod('parse_participants'); |
|
| 50 | - $this->parse_method->setAccessible(true); |
|
| 49 | + $this->parse_method = $class->getMethod('parse_participants'); |
|
| 50 | + $this->parse_method->setAccessible(true); |
|
| 51 | 51 | } |
| 52 | 52 | |
| 53 | 53 | public function tearDown() |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | $record = new ParticipantRecord($test_string); |
| 72 | 72 | |
| 73 | 73 | // Parse the string |
| 74 | - $parsed = $this->parse_method->invokeArgs($this->import, array($record, &$warning)); |
|
| 74 | + $parsed = $this->parse_method->invokeArgs($this->import, array($record, &$warning)); |
|
| 75 | 75 | |
| 76 | 76 | // Get numeric ID for this system |
| 77 | 77 | foreach ($expected as $id => $status) |
@@ -15,63 +15,63 @@ discard block |
||
| 15 | 15 | { |
| 16 | 16 | |
| 17 | 17 | /** |
| 18 | - * Appname |
|
| 19 | - */ |
|
| 18 | + * Appname |
|
| 19 | + */ |
|
| 20 | 20 | const _appname = 'notifications'; |
| 21 | 21 | |
| 22 | 22 | /** |
| 23 | - * Notification table in SQL database |
|
| 24 | - */ |
|
| 23 | + * Notification table in SQL database |
|
| 24 | + */ |
|
| 25 | 25 | const _notification_table = 'egw_notificationpopup'; |
| 26 | 26 | |
| 27 | 27 | /** |
| 28 | - * Notification type |
|
| 29 | - */ |
|
| 28 | + * Notification type |
|
| 29 | + */ |
|
| 30 | 30 | const _type = 'jpopup'; |
| 31 | 31 | |
| 32 | 32 | /** |
| 33 | - * holds account object for user who sends the message |
|
| 34 | - * |
|
| 35 | - * @var object |
|
| 36 | - */ |
|
| 33 | + * holds account object for user who sends the message |
|
| 34 | + * |
|
| 35 | + * @var object |
|
| 36 | + */ |
|
| 37 | 37 | private $sender; |
| 38 | 38 | |
| 39 | 39 | /** |
| 40 | - * holds account object for user to notify |
|
| 41 | - * |
|
| 42 | - * @var object |
|
| 43 | - */ |
|
| 40 | + * holds account object for user to notify |
|
| 41 | + * |
|
| 42 | + * @var object |
|
| 43 | + */ |
|
| 44 | 44 | private $recipient; |
| 45 | 45 | |
| 46 | 46 | /** |
| 47 | - * holds config object (sitewide application config) |
|
| 48 | - * |
|
| 49 | - * @var object |
|
| 50 | - */ |
|
| 47 | + * holds config object (sitewide application config) |
|
| 48 | + * |
|
| 49 | + * @var object |
|
| 50 | + */ |
|
| 51 | 51 | private $config; |
| 52 | 52 | |
| 53 | 53 | /** |
| 54 | - * holds preferences object of user to notify |
|
| 55 | - * |
|
| 56 | - * @var object |
|
| 57 | - */ |
|
| 54 | + * holds preferences object of user to notify |
|
| 55 | + * |
|
| 56 | + * @var object |
|
| 57 | + */ |
|
| 58 | 58 | private $preferences; |
| 59 | 59 | |
| 60 | 60 | /** |
| 61 | - * holds db object of SQL database |
|
| 62 | - * |
|
| 63 | - * @var Api\Db |
|
| 64 | - */ |
|
| 61 | + * holds db object of SQL database |
|
| 62 | + * |
|
| 63 | + * @var Api\Db |
|
| 64 | + */ |
|
| 65 | 65 | private $db; |
| 66 | 66 | |
| 67 | 67 | /** |
| 68 | - * constructor of notifications_egwpopup |
|
| 69 | - * |
|
| 70 | - * @param object $_sender |
|
| 71 | - * @param object $_recipient |
|
| 72 | - * @param object $_config |
|
| 73 | - * @param object $_preferences |
|
| 74 | - */ |
|
| 68 | + * constructor of notifications_egwpopup |
|
| 69 | + * |
|
| 70 | + * @param object $_sender |
|
| 71 | + * @param object $_recipient |
|
| 72 | + * @param object $_config |
|
| 73 | + * @param object $_preferences |
|
| 74 | + */ |
|
| 75 | 75 | public function __construct($_sender, $_recipient, $_config = null, $_preferences = null) |
| 76 | 76 | { |
| 77 | 77 | if( !is_object($_sender) ) { throw new Exception("no sender given."); } |
@@ -85,14 +85,14 @@ discard block |
||
| 85 | 85 | } |
| 86 | 86 | |
| 87 | 87 | /** |
| 88 | - * sends notification if user is online |
|
| 89 | - * |
|
| 90 | - * @param array $_messages |
|
| 91 | - * @param string $_subject |
|
| 92 | - * @param array $_links |
|
| 93 | - * @param array $_attachments |
|
| 94 | - * @param array $_data |
|
| 95 | - */ |
|
| 88 | + * sends notification if user is online |
|
| 89 | + * |
|
| 90 | + * @param array $_messages |
|
| 91 | + * @param string $_subject |
|
| 92 | + * @param array $_links |
|
| 93 | + * @param array $_attachments |
|
| 94 | + * @param array $_data |
|
| 95 | + */ |
|
| 96 | 96 | public function send(array $_messages, $_subject=false, $_links=false, $_attachments=false, $_data = false) |
| 97 | 97 | { |
| 98 | 98 | unset($_attachments, $_data); // not used |
@@ -134,11 +134,11 @@ discard block |
||
| 134 | 134 | } |
| 135 | 135 | |
| 136 | 136 | /** |
| 137 | - * renders additional infos from sender and subject |
|
| 138 | - * |
|
| 139 | - * @param string $_subject |
|
| 140 | - * @return string html rendered info as complete string |
|
| 141 | - */ |
|
| 137 | + * renders additional infos from sender and subject |
|
| 138 | + * |
|
| 139 | + * @param string $_subject |
|
| 140 | + * @return string html rendered info as complete string |
|
| 141 | + */ |
|
| 142 | 142 | private function render_infos($_subject = false) { |
| 143 | 143 | $infos = array(); |
| 144 | 144 | $newline = "<br />"; |
@@ -150,11 +150,11 @@ discard block |
||
| 150 | 150 | } |
| 151 | 151 | |
| 152 | 152 | /** |
| 153 | - * saves notification into database so that the client can fetch it from there |
|
| 154 | - * |
|
| 155 | - * @param string $_message |
|
| 156 | - * @param array $_user_sessions |
|
| 157 | - */ |
|
| 153 | + * saves notification into database so that the client can fetch it from there |
|
| 154 | + * |
|
| 155 | + * @param string $_message |
|
| 156 | + * @param array $_user_sessions |
|
| 157 | + */ |
|
| 158 | 158 | private function save( $_message ) { |
| 159 | 159 | $result = $this->db->insert( self::_notification_table, array( |
| 160 | 160 | 'account_id' => $this->recipient->account_id, |
@@ -152,19 +152,19 @@ discard block |
||
| 152 | 152 | var $categories; |
| 153 | 153 | |
| 154 | 154 | /** |
| 155 | - * Tracking changes |
|
| 156 | - * |
|
| 157 | - * @var Contacts\Tracking |
|
| 158 | - */ |
|
| 155 | + * Tracking changes |
|
| 156 | + * |
|
| 157 | + * @var Contacts\Tracking |
|
| 158 | + */ |
|
| 159 | 159 | protected $tracking; |
| 160 | 160 | |
| 161 | 161 | /** |
| 162 | - * Keep deleted addresses, or really delete them |
|
| 163 | - * Set in Admin -> Addressbook -> Site Configuration |
|
| 164 | - * ''=really delete, 'history'=keep, only admins delete, 'userpurge'=keep, users delete |
|
| 165 | - * |
|
| 166 | - * @var string |
|
| 167 | - */ |
|
| 162 | + * Keep deleted addresses, or really delete them |
|
| 163 | + * Set in Admin -> Addressbook -> Site Configuration |
|
| 164 | + * ''=really delete, 'history'=keep, only admins delete, 'userpurge'=keep, users delete |
|
| 165 | + * |
|
| 166 | + * @var string |
|
| 167 | + */ |
|
| 168 | 168 | protected $delete_history = ''; |
| 169 | 169 | |
| 170 | 170 | /** |
@@ -797,13 +797,13 @@ discard block |
||
| 797 | 797 | } |
| 798 | 798 | |
| 799 | 799 | /** |
| 800 | - * deletes contact in db |
|
| 801 | - * |
|
| 802 | - * @param mixed &$contact contact array with key id or (array of) id(s) |
|
| 803 | - * @param boolean $deny_account_delete =true if true never allow to delete accounts |
|
| 804 | - * @param int $check_etag =null |
|
| 805 | - * @return boolean|int true on success or false on failiure, 0 if etag does not match |
|
| 806 | - */ |
|
| 800 | + * deletes contact in db |
|
| 801 | + * |
|
| 802 | + * @param mixed &$contact contact array with key id or (array of) id(s) |
|
| 803 | + * @param boolean $deny_account_delete =true if true never allow to delete accounts |
|
| 804 | + * @param int $check_etag =null |
|
| 805 | + * @return boolean|int true on success or false on failiure, 0 if etag does not match |
|
| 806 | + */ |
|
| 807 | 807 | function delete($contact,$deny_account_delete=true,$check_etag=null) |
| 808 | 808 | { |
| 809 | 809 | if (is_array($contact) && isset($contact['id'])) |
@@ -855,13 +855,13 @@ discard block |
||
| 855 | 855 | } |
| 856 | 856 | |
| 857 | 857 | /** |
| 858 | - * saves contact to db |
|
| 859 | - * |
|
| 860 | - * @param array &$contact contact array from etemplate::exec |
|
| 861 | - * @param boolean $ignore_acl =false should the acl be checked or not |
|
| 862 | - * @param boolean $touch_modified =true should modified/r be updated |
|
| 863 | - * @return int/string/boolean id on success, false on failure, the error-message is in $this->error |
|
| 864 | - */ |
|
| 858 | + * saves contact to db |
|
| 859 | + * |
|
| 860 | + * @param array &$contact contact array from etemplate::exec |
|
| 861 | + * @param boolean $ignore_acl =false should the acl be checked or not |
|
| 862 | + * @param boolean $touch_modified =true should modified/r be updated |
|
| 863 | + * @return int/string/boolean id on success, false on failure, the error-message is in $this->error |
|
| 864 | + */ |
|
| 865 | 865 | function save(&$contact, $ignore_acl=false, $touch_modified=true) |
| 866 | 866 | { |
| 867 | 867 | // Make sure photo remains unchanged unless its purposely set to be false |
@@ -1110,12 +1110,12 @@ discard block |
||
| 1110 | 1110 | } |
| 1111 | 1111 | |
| 1112 | 1112 | /** |
| 1113 | - * reads contacts matched by key and puts all cols in the data array |
|
| 1114 | - * |
|
| 1115 | - * @param int|string $contact_id |
|
| 1116 | - * @param boolean $ignore_acl =false true: no acl check |
|
| 1117 | - * @return array|boolean array with contact data, null if not found or false on no view perms |
|
| 1118 | - */ |
|
| 1113 | + * reads contacts matched by key and puts all cols in the data array |
|
| 1114 | + * |
|
| 1115 | + * @param int|string $contact_id |
|
| 1116 | + * @param boolean $ignore_acl =false true: no acl check |
|
| 1117 | + * @return array|boolean array with contact data, null if not found or false on no view perms |
|
| 1118 | + */ |
|
| 1119 | 1119 | function read($contact_id, $ignore_acl=false) |
| 1120 | 1120 | { |
| 1121 | 1121 | // get so_sql_cf to read private customfields too, if we ignore acl |
@@ -102,12 +102,12 @@ discard block |
||
| 102 | 102 | } |
| 103 | 103 | |
| 104 | 104 | /** |
| 105 | - * Start the eGW session, skips the test if there are problems connecting |
|
| 106 | - * |
|
| 107 | - * @param string $user |
|
| 108 | - * @param string $passwd |
|
| 109 | - * @param string $domain |
|
| 110 | - */ |
|
| 105 | + * Start the eGW session, skips the test if there are problems connecting |
|
| 106 | + * |
|
| 107 | + * @param string $user |
|
| 108 | + * @param string $passwd |
|
| 109 | + * @param string $domain |
|
| 110 | + */ |
|
| 111 | 111 | public static function load_egw($user,$passwd,$domain='default',$info=array()) |
| 112 | 112 | { |
| 113 | 113 | $_REQUEST['domain'] = $domain; |
@@ -175,11 +175,11 @@ discard block |
||
| 175 | 175 | |
| 176 | 176 | |
| 177 | 177 | /** |
| 178 | - * callback to authenticate with the user/pw specified on the commandline |
|
| 179 | - * |
|
| 180 | - * @param array &$account account_info with keys 'login', 'passwd' and optional 'passwd_type' |
|
| 181 | - * @return boolean/string true if we allow the access and account is set, a sessionid or false otherwise |
|
| 182 | - */ |
|
| 178 | + * callback to authenticate with the user/pw specified on the commandline |
|
| 179 | + * |
|
| 180 | + * @param array &$account account_info with keys 'login', 'passwd' and optional 'passwd_type' |
|
| 181 | + * @return boolean/string true if we allow the access and account is set, a sessionid or false otherwise |
|
| 182 | + */ |
|
| 183 | 183 | public static function create_session(&$account) |
| 184 | 184 | { |
| 185 | 185 | if (!($sessionid = $GLOBALS['egw']->session->create($GLOBALS['egw_login_data']))) |
@@ -179,7 +179,7 @@ discard block |
||
| 179 | 179 | { |
| 180 | 180 | $value = date($format, $key == 'end' ? $id['end'] : $id['start']); |
| 181 | 181 | if($key == 'month') $value = lang($value); |
| 182 | - $values["$\$range/$key$$"] = $value; |
|
| 182 | + $values["$\$range/$key$key$"] = $value; |
|
| 183 | 183 | } |
| 184 | 184 | } |
| 185 | 185 | $replacements += $values; |
@@ -246,7 +246,7 @@ discard block |
||
| 246 | 246 | } |
| 247 | 247 | foreach($types as $t_id => $type) |
| 248 | 248 | { |
| 249 | - $replacements['$$'.($prefix ? $prefix . '/' : '') . "calendar_participants/{$t_id}$$"] = implode(', ',$type); |
|
| 249 | + $replacements['$$'.($prefix ? $prefix . '/' : '') . "calendar_participants/{$t_id}}$"] = implode(', ',$type); |
|
| 250 | 250 | } |
| 251 | 251 | } |
| 252 | 252 | // Participant email list (not declined) |
@@ -377,20 +377,20 @@ discard block |
||
| 377 | 377 | } |
| 378 | 378 | |
| 379 | 379 | /** |
| 380 | - * Table plugin for event |
|
| 381 | - * Lists events for a certain day of the week. Only works for one week at a time, so for multiple weeks, |
|
| 382 | - * use multiple date ranges. |
|
| 383 | - * |
|
| 384 | - * Use: |
|
| 385 | - * $$table/Monday$$ $$starttime$$ $$title$$ $$endtable$$ |
|
| 386 | - * The day of the week may be language specific (date('l')). |
|
| 387 | - * |
|
| 388 | - * @param string $plugin (Monday-Sunday) |
|
| 389 | - * @param int/array date or date range |
|
| 390 | - * @param int $n Row number |
|
| 391 | - * @param string $repeat Text being repeated for each entry |
|
| 392 | - * @return array |
|
| 393 | - */ |
|
| 380 | + * Table plugin for event |
|
| 381 | + * Lists events for a certain day of the week. Only works for one week at a time, so for multiple weeks, |
|
| 382 | + * use multiple date ranges. |
|
| 383 | + * |
|
| 384 | + * Use: |
|
| 385 | + * $$table/Monday$$ $$starttime$$ $$title$$ $$endtable$$ |
|
| 386 | + * The day of the week may be language specific (date('l')). |
|
| 387 | + * |
|
| 388 | + * @param string $plugin (Monday-Sunday) |
|
| 389 | + * @param int/array date or date range |
|
| 390 | + * @param int $n Row number |
|
| 391 | + * @param string $repeat Text being repeated for each entry |
|
| 392 | + * @return array |
|
| 393 | + */ |
|
| 394 | 394 | public function day_plugin($plugin,$date,$n,$repeat) |
| 395 | 395 | { |
| 396 | 396 | static $days = null; |
@@ -471,16 +471,16 @@ discard block |
||
| 471 | 471 | } |
| 472 | 472 | |
| 473 | 473 | /** |
| 474 | - * Table plugin for a certain date |
|
| 475 | - * |
|
| 476 | - * Can be either a particular date (2011-02-15) or a day of the month (15) |
|
| 477 | - * |
|
| 478 | - * @param string $plugin |
|
| 479 | - * @param int $id ID for this record |
|
| 480 | - * @param int $n Repeated row number |
|
| 481 | - * @param string $repeat Text being repeated for each entry |
|
| 482 | - * @return array |
|
| 483 | - */ |
|
| 474 | + * Table plugin for a certain date |
|
| 475 | + * |
|
| 476 | + * Can be either a particular date (2011-02-15) or a day of the month (15) |
|
| 477 | + * |
|
| 478 | + * @param string $plugin |
|
| 479 | + * @param int $id ID for this record |
|
| 480 | + * @param int $n Repeated row number |
|
| 481 | + * @param string $repeat Text being repeated for each entry |
|
| 482 | + * @return array |
|
| 483 | + */ |
|
| 484 | 484 | public function day($plugin,$id,$n,$repeat) |
| 485 | 485 | { |
| 486 | 486 | static $days = null; |
@@ -569,15 +569,15 @@ discard block |
||
| 569 | 569 | } |
| 570 | 570 | |
| 571 | 571 | /** |
| 572 | - * Table plugin for participants |
|
| 573 | - * |
|
| 574 | - * Copied from eventmgr resources |
|
| 575 | - * |
|
| 576 | - * @param string $plugin |
|
| 577 | - * @param int $id |
|
| 578 | - * @param int $n |
|
| 579 | - * @return array |
|
| 580 | - */ |
|
| 572 | + * Table plugin for participants |
|
| 573 | + * |
|
| 574 | + * Copied from eventmgr resources |
|
| 575 | + * |
|
| 576 | + * @param string $plugin |
|
| 577 | + * @param int $id |
|
| 578 | + * @param int $n |
|
| 579 | + * @return array |
|
| 580 | + */ |
|
| 581 | 581 | public function participant($plugin,$id,$n) |
| 582 | 582 | { |
| 583 | 583 | unset($plugin); // not used, but required by function signature |
@@ -636,7 +636,7 @@ discard block |
||
| 636 | 636 | { |
| 637 | 637 | foreach($resource as $name => $value) |
| 638 | 638 | { |
| 639 | - $replacements['$$'.$name.'$$'] = $value; |
|
| 639 | + $replacements['$$'.$name.'$$'] = $value; |
|
| 640 | 640 | } |
| 641 | 641 | } |
| 642 | 642 | break; |
@@ -64,8 +64,8 @@ discard block |
||
| 64 | 64 | private $bo; |
| 65 | 65 | |
| 66 | 66 | /** |
| 67 | - * For figuring out if an entry has changed |
|
| 68 | - */ |
|
| 67 | + * For figuring out if an entry has changed |
|
| 68 | + */ |
|
| 69 | 69 | protected $tracking; |
| 70 | 70 | |
| 71 | 71 | /** |
@@ -94,8 +94,8 @@ discard block |
||
| 94 | 94 | protected $errors = array(); |
| 95 | 95 | |
| 96 | 96 | /** |
| 97 | - * List of actions, and how many times that action was taken |
|
| 98 | - */ |
|
| 97 | + * List of actions, and how many times that action was taken |
|
| 98 | + */ |
|
| 99 | 99 | protected $results = array(); |
| 100 | 100 | |
| 101 | 101 | /** |
@@ -305,38 +305,38 @@ discard block |
||
| 305 | 305 | return 'calendar_egw_record'; |
| 306 | 306 | } |
| 307 | 307 | /** |
| 308 | - * Returns warnings that were encountered during importing |
|
| 309 | - * Maximum of one warning message per record, but you can append if you need to |
|
| 310 | - * |
|
| 311 | - * @return Array ( |
|
| 312 | - * record_# => warning message |
|
| 313 | - * ) |
|
| 314 | - */ |
|
| 315 | - public function get_warnings() { |
|
| 308 | + * Returns warnings that were encountered during importing |
|
| 309 | + * Maximum of one warning message per record, but you can append if you need to |
|
| 310 | + * |
|
| 311 | + * @return Array ( |
|
| 312 | + * record_# => warning message |
|
| 313 | + * ) |
|
| 314 | + */ |
|
| 315 | + public function get_warnings() { |
|
| 316 | 316 | return $this->warnings; |
| 317 | 317 | } |
| 318 | 318 | |
| 319 | 319 | /** |
| 320 | - * Returns errors that were encountered during importing |
|
| 321 | - * Maximum of one error message per record, but you can append if you need to |
|
| 322 | - * |
|
| 323 | - * @return Array ( |
|
| 324 | - * record_# => error message |
|
| 325 | - * ) |
|
| 326 | - */ |
|
| 327 | - public function get_errors() { |
|
| 320 | + * Returns errors that were encountered during importing |
|
| 321 | + * Maximum of one error message per record, but you can append if you need to |
|
| 322 | + * |
|
| 323 | + * @return Array ( |
|
| 324 | + * record_# => error message |
|
| 325 | + * ) |
|
| 326 | + */ |
|
| 327 | + public function get_errors() { |
|
| 328 | 328 | return $this->errors; |
| 329 | 329 | } |
| 330 | 330 | |
| 331 | 331 | /** |
| 332 | - * Returns a list of actions taken, and the number of records for that action. |
|
| 333 | - * Actions are things like 'insert', 'update', 'delete', and may be different for each plugin. |
|
| 334 | - * |
|
| 335 | - * @return Array ( |
|
| 336 | - * action => record count |
|
| 337 | - * ) |
|
| 338 | - */ |
|
| 339 | - public function get_results() { |
|
| 340 | - return $this->results; |
|
| 341 | - } |
|
| 332 | + * Returns a list of actions taken, and the number of records for that action. |
|
| 333 | + * Actions are things like 'insert', 'update', 'delete', and may be different for each plugin. |
|
| 334 | + * |
|
| 335 | + * @return Array ( |
|
| 336 | + * action => record count |
|
| 337 | + * ) |
|
| 338 | + */ |
|
| 339 | + public function get_results() { |
|
| 340 | + return $this->results; |
|
| 341 | + } |
|
| 342 | 342 | } |
| 343 | 343 | \ No newline at end of file |
@@ -15,18 +15,18 @@ |
||
| 15 | 15 | class calendar_wizard_import_ical |
| 16 | 16 | { |
| 17 | 17 | /** |
| 18 | - * List of steps. Key is the function, value is the translated title. |
|
| 19 | - */ |
|
| 18 | + * List of steps. Key is the function, value is the translated title. |
|
| 19 | + */ |
|
| 20 | 20 | public $steps; |
| 21 | 21 | |
| 22 | 22 | /** |
| 23 | - * List of eTemplates to use for each step. You can override this with your own etemplates steps. |
|
| 24 | - */ |
|
| 23 | + * List of eTemplates to use for each step. You can override this with your own etemplates steps. |
|
| 24 | + */ |
|
| 25 | 25 | protected $step_templates = array( |
| 26 | 26 | 'wizard_step55' => 'calendar.import.ical_conditions', |
| 27 | 27 | 'wizard_step60' => 'calendar.importexport_wizard_ical_chooseowner' |
| 28 | 28 | ); |
| 29 | - /** |
|
| 29 | + /** |
|
| 30 | 30 | * constructor |
| 31 | 31 | */ |
| 32 | 32 | function __construct() |