@@ -314,6 +314,11 @@ |
||
314 | 314 | } |
315 | 315 | redirect(base_url() . 'user/user/'); |
316 | 316 | } |
317 | + |
|
318 | + /** |
|
319 | + * @param integer $last_invoice_ID |
|
320 | + * @param string $due_date |
|
321 | + */ |
|
317 | 322 | function generate_receipt($accountid,$amount,$accountinfo,$last_invoice_ID,$invoice_prefix,$due_date){ |
318 | 323 | $invoice_data = array("accountid"=>$accountid,"invoice_prefix" =>$invoice_prefix,"invoiceid"=>'0000'.$last_invoice_ID,"reseller_id"=>$accountinfo['reseller_id'],"invoice_date"=>gmdate("Y-m-d H:i:s"),"from_date"=> gmdate("Y-m-d H:i:s"),"to_date"=>gmdate("Y-m-d H:i:s"),"due_date"=>$due_date,"status"=>1,"balance"=>$accountinfo['balance'],"amount"=>$amount,"type"=>'R',"confirm"=>'1'); |
319 | 324 | $this->db->insert("invoices",$invoice_data); |
@@ -332,6 +332,9 @@ |
||
332 | 332 | ASTPP 3.0 |
333 | 333 | Rate insert |
334 | 334 | *************/ |
335 | + /** |
|
336 | + * @param string $table_name |
|
337 | + */ |
|
335 | 338 | function insert_if_not_exitst($add_array,$table_name){ |
336 | 339 | $insert_str = "Insert into $table_name ("; |
337 | 340 | $insert_key = ""; |
@@ -426,6 +426,9 @@ |
||
426 | 426 | } |
427 | 427 | } |
428 | 428 | |
429 | + /** |
|
430 | + * @param string $temp_name |
|
431 | + */ |
|
429 | 432 | function send_mail($account_id, $temp_name, $user_data) { |
430 | 433 | |
431 | 434 |
@@ -73,6 +73,9 @@ discard block |
||
73 | 73 | echo json_encode($json_data); |
74 | 74 | } |
75 | 75 | |
76 | + /** |
|
77 | + * @param string $entity |
|
78 | + */ |
|
76 | 79 | function summary_column_arr($entity) { |
77 | 80 | $new_column_arr = array(); |
78 | 81 | $total_width = '322'; |
@@ -126,6 +129,10 @@ discard block |
||
126 | 129 | return $new_column_arr; |
127 | 130 | } |
128 | 131 | |
132 | + /** |
|
133 | + * @param string $entity |
|
134 | + * @param string $purpose |
|
135 | + */ |
|
129 | 136 | function summary_report_grid($search_arr, $query, $entity, $purpose) { |
130 | 137 | $export_arr = array(); |
131 | 138 | $db_field_name = $entity == 'provider' ? 'provider_id' : 'accountid'; |
@@ -330,6 +337,9 @@ discard block |
||
330 | 337 | redirect(base_url() . 'summary/customer/'); |
331 | 338 | } |
332 | 339 | |
340 | + /** |
|
341 | + * @param string $entity |
|
342 | + */ |
|
333 | 343 | function summary_search_info($entity) { |
334 | 344 | $group_by_str = null; |
335 | 345 | $select_str = null; |
@@ -67,7 +67,7 @@ |
||
67 | 67 | * @param string a particular marked point |
68 | 68 | * @param string a particular marked point |
69 | 69 | * @param integer the number of decimal places |
70 | - * @return mixed |
|
70 | + * @return string |
|
71 | 71 | */ |
72 | 72 | function elapsed_time($point1 = '', $point2 = '', $decimals = 4) |
73 | 73 | { |
@@ -467,6 +467,9 @@ |
||
467 | 467 | */ |
468 | 468 | if ( ! function_exists('_exception_handler')) |
469 | 469 | { |
470 | + /** |
|
471 | + * @param integer $severity |
|
472 | + */ |
|
470 | 473 | function _exception_handler($severity, $message, $filepath, $line) |
471 | 474 | { |
472 | 475 | // We don't bother with "strict" notices since they tend to fill up |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | * @param string the config file name |
57 | 57 | * @param boolean if configuration values should be loaded into their own section |
58 | 58 | * @param boolean true if errors should just return false, false if an error message should be displayed |
59 | - * @return boolean if the file was successfully loaded or not |
|
59 | + * @return boolean|null if the file was successfully loaded or not |
|
60 | 60 | */ |
61 | 61 | function __construct() |
62 | 62 | { |
@@ -223,6 +223,7 @@ discard block |
||
223 | 223 | * @access public |
224 | 224 | * @param string the config item name |
225 | 225 | * @param bool |
226 | + * @param string $item |
|
226 | 227 | * @return string |
227 | 228 | */ |
228 | 229 | function slash_item($item) |
@@ -288,7 +289,7 @@ discard block |
||
288 | 289 | * Build URI string for use in Config::site_url() and Config::base_url() |
289 | 290 | * |
290 | 291 | * @access protected |
291 | - * @param $uri |
|
292 | + * @param string $uri |
|
292 | 293 | * @return string |
293 | 294 | */ |
294 | 295 | protected function _uri_string($uri) |
@@ -130,6 +130,8 @@ |
||
130 | 130 | * @param string the message |
131 | 131 | * @param string the template name |
132 | 132 | * @param int the status code |
133 | + * @param string $heading |
|
134 | + * @param string $message |
|
133 | 135 | * @return string |
134 | 136 | */ |
135 | 137 | function show_error($heading, $message, $template = 'error_general', $status_code = 500) |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | * |
109 | 109 | * @access private |
110 | 110 | * @param string the hook name |
111 | - * @return mixed |
|
111 | + * @return boolean |
|
112 | 112 | */ |
113 | 113 | function _call_hook($which = '') |
114 | 114 | { |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | * |
142 | 142 | * @access private |
143 | 143 | * @param array the hook details |
144 | - * @return bool |
|
144 | + * @return null|boolean |
|
145 | 145 | */ |
146 | 146 | function _run_hook($data) |
147 | 147 | { |