@@ -12,6 +12,8 @@ |
||
12 | 12 | |
13 | 13 | /** |
14 | 14 | * @author MAK |
15 | + * @param string $id |
|
16 | + * @param string $newOwnerId |
|
15 | 17 | */ |
16 | 18 | function vtws_deleteUser($id, $newOwnerId, $user) |
17 | 19 | { |
@@ -10,12 +10,18 @@ |
||
10 | 10 | $this->folders = 'cache/import/'; |
11 | 11 | } |
12 | 12 | |
13 | + /** |
|
14 | + * @param string $filename |
|
15 | + */ |
|
13 | 16 | public function iCalReader($filename, $rootDirectory = '') |
14 | 17 | { |
15 | 18 | $iCaltoArray = $this->iCalDecoder($filename, $rootDirectory); |
16 | 19 | return $iCaltoArray; |
17 | 20 | } |
18 | 21 | |
22 | + /** |
|
23 | + * @param string $rootDirectory |
|
24 | + */ |
|
19 | 25 | public function iCalDecoder($file, $rootDirectory) |
20 | 26 | { |
21 | 27 | $ical = file_get_contents($rootDirectory . $this->folders . $file); |
@@ -31,6 +31,9 @@ discard block |
||
31 | 31 | } |
32 | 32 | } |
33 | 33 | |
34 | + /** |
|
35 | + * @param iCalendar_property $parent_property |
|
36 | + */ |
|
34 | 37 | public function is_valid_value(&$parent_property, $parameter, $value) |
35 | 38 | { |
36 | 39 | switch ($parameter) { |
@@ -183,6 +186,9 @@ discard block |
||
183 | 186 | } |
184 | 187 | } |
185 | 188 | |
189 | + /** |
|
190 | + * @param string $parameter |
|
191 | + */ |
|
186 | 192 | public function do_value_formatting($parameter, $value) |
187 | 193 | { |
188 | 194 | switch ($parameter) { |
@@ -27,6 +27,10 @@ discard block |
||
27 | 27 | |
28 | 28 | // If some property needs extra care with its parameters, override this |
29 | 29 | // IMPORTANT: the parameter name MUST BE CAPITALIZED! |
30 | + |
|
31 | + /** |
|
32 | + * @param string $parameter |
|
33 | + */ |
|
30 | 34 | public function is_valid_parameter($parameter, $value) |
31 | 35 | { |
32 | 36 | |
@@ -1218,6 +1222,9 @@ discard block |
||
1218 | 1222 | ); |
1219 | 1223 | } |
1220 | 1224 | |
1225 | + /** |
|
1226 | + * @param string $name |
|
1227 | + */ |
|
1221 | 1228 | public function set_name($name) |
1222 | 1229 | { |
1223 | 1230 |
@@ -40,6 +40,9 @@ discard block |
||
40 | 40 | define('RFC2445_TYPE_URI', 12); // CAL_ADDRESS === URI |
41 | 41 | define('RFC2445_TYPE_UTC_OFFSET', 13); |
42 | 42 | |
43 | +/** |
|
44 | + * @param string $string |
|
45 | + */ |
|
43 | 46 | function rfc2445_fold($string) |
44 | 47 | { |
45 | 48 | if (strlen($string) <= RFC2445_FOLDED_LINE_LENGTH) { |
@@ -67,6 +70,9 @@ discard block |
||
67 | 70 | return $string; |
68 | 71 | } |
69 | 72 | |
73 | +/** |
|
74 | + * @param string $name |
|
75 | + */ |
|
70 | 76 | function rfc2445_is_xname($name) |
71 | 77 | { |
72 | 78 |
@@ -14,6 +14,7 @@ |
||
14 | 14 | /** |
15 | 15 | * Function to get Instance of Faq Record Model using TroubleTicket RecordModel |
16 | 16 | * @param HelpDesk_Record_Model |
17 | + * @param Vtiger_Record_Model $parentRecordModel |
|
17 | 18 | * @return Faq_Record_Model |
18 | 19 | */ |
19 | 20 | public static function getInstanceFromHelpDesk($parentRecordModel) |
@@ -59,6 +59,9 @@ |
||
59 | 59 | return $this->map; |
60 | 60 | } |
61 | 61 | |
62 | + /** |
|
63 | + * @param string $key |
|
64 | + */ |
|
62 | 65 | public function getValue($key) |
63 | 66 | { |
64 | 67 | $map = $this->map; |
@@ -69,8 +69,9 @@ |
||
69 | 69 | |
70 | 70 | public function getStringifiedContent() |
71 | 71 | { |
72 | - if (empty($this->map['content'])) |
|
73 | - return; |
|
72 | + if (empty($this->map['content'])) { |
|
73 | + return; |
|
74 | + } |
|
74 | 75 | $content = $this->map['content']; |
75 | 76 | $keyValueStrings = []; |
76 | 77 | foreach ($content as $key => $value) { |
@@ -44,7 +44,7 @@ |
||
44 | 44 | * Checks if chosen parent is record child |
45 | 45 | * @param type $parentId |
46 | 46 | * @param type $childArray |
47 | - * @return true if parent can be set |
|
47 | + * @return boolean if parent can be set |
|
48 | 48 | */ |
49 | 49 | public function checkChildren($parentId, $childArray) |
50 | 50 | { |
@@ -201,6 +201,7 @@ discard block |
||
201 | 201 | * @param integer $id - istorageid |
202 | 202 | * @param array $parentIStorages - Array of all the parent storages |
203 | 203 | * returns All the parent Storages of the given istorageid in array format |
204 | + * @param integer[] $encounteredIStorages |
|
204 | 205 | */ |
205 | 206 | public function getParentIStorages($id, &$parentIStorages, &$encounteredIStorages, $depthBase = 0) |
206 | 207 | { |
@@ -266,7 +267,7 @@ discard block |
||
266 | 267 | * Function to Recursively get all the child storages of a given Storage |
267 | 268 | * @param integer $id - istorageid |
268 | 269 | * @param array $childIStorages - Array of all the child storages |
269 | - * @param integer $depth - Depth at which the particular storage has to be placed in the hierarchy |
|
270 | + * @param integer $depthBase - Depth at which the particular storage has to be placed in the hierarchy |
|
270 | 271 | * returns All the child storages of the given istorageid in array format |
271 | 272 | */ |
272 | 273 | public function getChildIStorages($id, &$childIStorages, $depthBase) |