@@ -39,6 +39,9 @@ |
||
39 | 39 | ********************************************************************************/ |
40 | 40 | |
41 | 41 | |
42 | +/** |
|
43 | + * @param Opportunity $focus |
|
44 | + */ |
|
42 | 45 | function perform_save(&$focus){ |
43 | 46 | //US DOLLAR |
44 | 47 | if(isset($focus->amount) && !number_empty($focus->amount)){ |
@@ -24,6 +24,9 @@ discard block |
||
24 | 24 | private $end_date; |
25 | 25 | private $tasks; |
26 | 26 | |
27 | + /** |
|
28 | + * @param string $start_date |
|
29 | + */ |
|
27 | 30 | public function __construct($start_date, $end_date, $tasks) |
28 | 31 | { |
29 | 32 | $this->start_date = $start_date; |
@@ -269,6 +272,10 @@ discard block |
||
269 | 272 | } |
270 | 273 | |
271 | 274 | //get date of passed in day in relation to the charts start date |
275 | + |
|
276 | + /** |
|
277 | + * @param integer $day |
|
278 | + */ |
|
272 | 279 | function get_date($start, $day){ |
273 | 280 | $date = DateTime::createFromFormat('Y-m-d', $start); |
274 | 281 | // $date->setTimezone(new DateTimeZone("Europe/London")); |
@@ -202,6 +202,12 @@ discard block |
||
202 | 202 | } |
203 | 203 | |
204 | 204 | |
205 | + /** |
|
206 | + * @param string $milestone_flag |
|
207 | + * @param string $status |
|
208 | + * @param integer $project_task_id |
|
209 | + * @param integer $order_number |
|
210 | + */ |
|
205 | 211 | function create_task($name, $start, $end, $project_id, $milestone_flag, $status, $project_task_id, $predecessors, $rel_type, $duration, $duration_unit, $resource, $percent_complete, $description,$actual_duration,$order_number){ |
206 | 212 | |
207 | 213 | $task = new ProjectTask(); |
@@ -224,6 +230,10 @@ discard block |
||
224 | 230 | $task->save(); |
225 | 231 | } |
226 | 232 | |
233 | + /** |
|
234 | + * @param string $milestone_flag |
|
235 | + * @param string $status |
|
236 | + */ |
|
227 | 237 | function update_task($id, $name, $start, $end, $project_id, $milestone_flag, $status, $predecessors, $rel_type, $duration, $duration_unit, $resource, $percent_complete, $description,$actual_duration){ |
228 | 238 | |
229 | 239 | $task = new ProjectTask(); |
@@ -397,6 +407,10 @@ discard block |
||
397 | 407 | |
398 | 408 | |
399 | 409 | //Returns the total number of days between two dates |
410 | + |
|
411 | + /** |
|
412 | + * @param string $start_date |
|
413 | + */ |
|
400 | 414 | function count_days($start_date, $end_date){ |
401 | 415 | $d1 = new DateTime($start_date); |
402 | 416 | $d2 = new DateTime($end_date); |
@@ -209,6 +209,9 @@ |
||
209 | 209 | return $return_value; |
210 | 210 | } |
211 | 211 | |
212 | + /** |
|
213 | + * @param string $project_id |
|
214 | + */ |
|
212 | 215 | function _get_project_name($project_id) |
213 | 216 | { |
214 | 217 | $return_value = ''; |
@@ -295,6 +295,10 @@ |
||
295 | 295 | $this->set_prospect_relationship($this->id, $this->contact_id, "prospect"); |
296 | 296 | } |
297 | 297 | |
298 | + /** |
|
299 | + * @param string $prospect_list_id |
|
300 | + * @param string $link_name |
|
301 | + */ |
|
298 | 302 | function set_prospect_relationship($prospect_list_id, &$link_ids, $link_name) |
299 | 303 | { |
300 | 304 | $link_field = sprintf("%s_id", $link_name); |
@@ -50,6 +50,9 @@ |
||
50 | 50 | class ProspectListFormBase { |
51 | 51 | |
52 | 52 | |
53 | +/** |
|
54 | + * @param string $prefix |
|
55 | + */ |
|
53 | 56 | function getForm($prefix, $mod='', $form=''){ |
54 | 57 | |
55 | 58 | if(!ACLController::checkAccess('ProspectLists', 'edit', true)){ |
@@ -246,6 +246,9 @@ |
||
246 | 246 | } |
247 | 247 | |
248 | 248 | |
249 | + /** |
|
250 | + * @param string $base_module |
|
251 | + */ |
|
249 | 252 | function trace_relationship_module($base_module, $rel_module1_name, $rel_module2_name=""){ |
250 | 253 | global $beanList; |
251 | 254 | global $dictionary; |
@@ -320,6 +320,9 @@ |
||
320 | 320 | //end function get_relationship_information |
321 | 321 | } |
322 | 322 | |
323 | +/** |
|
324 | + * @param string $base_module |
|
325 | + */ |
|
323 | 326 | function traverse_rel_meta($base_module, & $target_bean, $target_rel_name){ |
324 | 327 | $id_name = null; |
325 | 328 |
@@ -86,6 +86,10 @@ discard block |
||
86 | 86 | } |
87 | 87 | |
88 | 88 | // Saved Search Form |
89 | + |
|
90 | + /** |
|
91 | + * @param string $module |
|
92 | + */ |
|
89 | 93 | function getForm($module, $inline = true) { |
90 | 94 | global $db, $current_user, $currentModule, $current_language, $app_strings; |
91 | 95 | $json = getJSONobj(); |
@@ -175,6 +179,9 @@ discard block |
||
175 | 179 | return $sugarSmarty->fetch('modules/SavedSearch/SavedSearchForm.tpl'); |
176 | 180 | } |
177 | 181 | |
182 | + /** |
|
183 | + * @param string $module |
|
184 | + */ |
|
178 | 185 | function getSelect($module) { |
179 | 186 | |
180 | 187 | |
@@ -341,6 +348,10 @@ discard block |
||
341 | 348 | } |
342 | 349 | } |
343 | 350 | |
351 | + /** |
|
352 | + * @param string $search_query |
|
353 | + * @param string $saved_search_id |
|
354 | + */ |
|
344 | 355 | function handleRedirect($return_module, $search_query, $saved_search_id, $advanced = 'false') { |
345 | 356 | $_SESSION['LastSavedView'][$return_module] = $saved_search_id; |
346 | 357 | $return_action = 'index'; |