@@ -611,6 +611,7 @@ discard block |
||
| 611 | 611 | * @param integer $id - accountid |
| 612 | 612 | * @param array $parent_accounts - Array of all the parent accounts |
| 613 | 613 | * returns All the parent accounts of the given accountid in array format |
| 614 | + * @param integer[] $encountered_accounts |
|
| 614 | 615 | */ |
| 615 | 616 | public function __getParentAccounts($id, &$parent_accounts, &$encountered_accounts, $depthBase = 0) |
| 616 | 617 | { |
@@ -673,7 +674,7 @@ discard block |
||
| 673 | 674 | * Function to Recursively get all the child accounts of a given Account |
| 674 | 675 | * @param integer $id - accountid |
| 675 | 676 | * @param array $child_accounts - Array of all the child accounts |
| 676 | - * @param integer $depth - Depth at which the particular account has to be placed in the hierarchy |
|
| 677 | + * @param integer $depthBase - Depth at which the particular account has to be placed in the hierarchy |
|
| 677 | 678 | * returns All the child accounts of the given accountid in array format |
| 678 | 679 | */ |
| 679 | 680 | public function __getChildAccounts($id, &$child_accounts, $depthBase) |
@@ -109,6 +109,9 @@ |
||
| 109 | 109 | $response->emit(); |
| 110 | 110 | } |
| 111 | 111 | |
| 112 | + /** |
|
| 113 | + * @param string $datetime |
|
| 114 | + */ |
|
| 112 | 115 | public function changeDateTime($datetime, $delta) |
| 113 | 116 | { |
| 114 | 117 | $date = new DateTime($datetime); |
@@ -119,6 +119,9 @@ |
||
| 119 | 119 | * Function adds days and minutes to datetime string |
| 120 | 120 | */ |
| 121 | 121 | |
| 122 | + /** |
|
| 123 | + * @param string $datetime |
|
| 124 | + */ |
|
| 122 | 125 | public function changeDateTime($datetime, $daysToAdd, $minutesToAdd) |
| 123 | 126 | { |
| 124 | 127 | $datetime = strtotime($datetime); |
@@ -384,7 +384,7 @@ discard block |
||
| 384 | 384 | |
| 385 | 385 | /** |
| 386 | 386 | * |
| 387 | - * @return Date |
|
| 387 | + * @return string |
|
| 388 | 388 | */ |
| 389 | 389 | public function get_DB_formatted_date() |
| 390 | 390 | { |
@@ -529,10 +529,6 @@ discard block |
||
| 529 | 529 | * This should be used whereever possible |
| 530 | 530 | * |
| 531 | 531 | * @param integer $index - number between 0 to 42 |
| 532 | - * @param string $day - date |
|
| 533 | - * @param string $month - month |
|
| 534 | - * @param string $year - year |
|
| 535 | - * return vt_DateTime obj $datetimevalue |
|
| 536 | 532 | */ |
| 537 | 533 | public function getThisMonthsDayByIndex($index) |
| 538 | 534 | { |
@@ -149,6 +149,10 @@ discard block |
||
| 149 | 149 | return $hierarchy; |
| 150 | 150 | } |
| 151 | 151 | |
| 152 | + /** |
|
| 153 | + * @param integer $id |
|
| 154 | + * @param integer[] $encountered_accounts |
|
| 155 | + */ |
|
| 152 | 156 | public function __getParentEmployees($id, &$parent_accounts, &$encountered_accounts) |
| 153 | 157 | { |
| 154 | 158 | $adb = PearDatabase::getInstance(); |
@@ -200,6 +204,9 @@ discard block |
||
| 200 | 204 | return $parent_accounts; |
| 201 | 205 | } |
| 202 | 206 | |
| 207 | + /** |
|
| 208 | + * @param integer $id |
|
| 209 | + */ |
|
| 203 | 210 | public function __getChildEmployees($id, &$child_accounts, $depth) |
| 204 | 211 | { |
| 205 | 212 | $adb = PearDatabase::getInstance(); |
@@ -50,6 +50,9 @@ discard block |
||
| 50 | 50 | return $xml; |
| 51 | 51 | } |
| 52 | 52 | |
| 53 | + /** |
|
| 54 | + * @param integer $level |
|
| 55 | + */ |
|
| 53 | 56 | protected function createXML($key, $value, $level) |
| 54 | 57 | { |
| 55 | 58 | $indent = ''; |
@@ -69,6 +72,9 @@ discard block |
||
| 69 | 72 | return $xml; |
| 70 | 73 | } |
| 71 | 74 | |
| 75 | + /** |
|
| 76 | + * @param string $line |
|
| 77 | + */ |
|
| 72 | 78 | protected function parseLine($line) |
| 73 | 79 | { |
| 74 | 80 | $tag = substr($line, 1, strpos($line, ':', 1) - 1); |
@@ -114,6 +120,9 @@ discard block |
||
| 114 | 120 | $this->_lastTag = $tag; |
| 115 | 121 | } |
| 116 | 122 | |
| 123 | + /** |
|
| 124 | + * @param string $value |
|
| 125 | + */ |
|
| 117 | 126 | protected function parseOperation($value) |
| 118 | 127 | { |
| 119 | 128 | $this->operations[] = array( |
@@ -124,6 +133,9 @@ discard block |
||
| 124 | 133 | ); |
| 125 | 134 | } |
| 126 | 135 | |
| 136 | + /** |
|
| 137 | + * @param string $value |
|
| 138 | + */ |
|
| 127 | 139 | protected function parseBalance($value) |
| 128 | 140 | { |
| 129 | 141 | return array( |
@@ -134,6 +146,9 @@ discard block |
||
| 134 | 146 | ); |
| 135 | 147 | } |
| 136 | 148 | |
| 149 | + /** |
|
| 150 | + * @param string $value |
|
| 151 | + */ |
|
| 137 | 152 | protected function parseTransaction($value) |
| 138 | 153 | { |
| 139 | 154 | $transaction = array( |
@@ -20,6 +20,9 @@ discard block |
||
| 20 | 20 | $this->parseLine($line); |
| 21 | 21 | } |
| 22 | 22 | |
| 23 | + /** |
|
| 24 | + * @param string $line |
|
| 25 | + */ |
|
| 23 | 26 | protected function parseLine($line) |
| 24 | 27 | { |
| 25 | 28 | $tag = substr($line, 1, strpos($line, ':', 1) - 1); |
@@ -65,6 +68,9 @@ discard block |
||
| 65 | 68 | $this->_lastTag = $tag; |
| 66 | 69 | } |
| 67 | 70 | |
| 71 | + /** |
|
| 72 | + * @param string $value |
|
| 73 | + */ |
|
| 68 | 74 | protected function parseTransaction($value) |
| 69 | 75 | { |
| 70 | 76 | $transaction = array( |
@@ -129,6 +135,9 @@ discard block |
||
| 129 | 135 | $this->operations[count($this->operations) - 1]['details'] = $transaction; |
| 130 | 136 | } |
| 131 | 137 | |
| 138 | + /** |
|
| 139 | + * @param string $value |
|
| 140 | + */ |
|
| 132 | 141 | protected function parseOperation($value) |
| 133 | 142 | { |
| 134 | 143 | $this->operations[] = array( |
@@ -20,6 +20,9 @@ discard block |
||
| 20 | 20 | $this->parseLine($line); |
| 21 | 21 | } |
| 22 | 22 | |
| 23 | + /** |
|
| 24 | + * @param string $line |
|
| 25 | + */ |
|
| 23 | 26 | protected function parseLine($line) |
| 24 | 27 | { |
| 25 | 28 | $tag = substr($line, 1, strpos($line, ':', 1) - 1); |
@@ -66,6 +69,9 @@ discard block |
||
| 66 | 69 | $this->_lastTag = $tag; |
| 67 | 70 | } |
| 68 | 71 | |
| 72 | + /** |
|
| 73 | + * @param string $value |
|
| 74 | + */ |
|
| 69 | 75 | protected function parseTransaction($value) |
| 70 | 76 | { |
| 71 | 77 | $transaction = array( |
@@ -84,6 +90,9 @@ discard block |
||
| 84 | 90 | $this->operations[count($this->operations) - 1]['details'] = $transaction; |
| 85 | 91 | } |
| 86 | 92 | |
| 93 | + /** |
|
| 94 | + * @param string $value |
|
| 95 | + */ |
|
| 87 | 96 | protected function parseOperation($value) |
| 88 | 97 | { |
| 89 | 98 | $this->operations[] = array( |
@@ -20,6 +20,9 @@ discard block |
||
| 20 | 20 | $this->parseLine($line); |
| 21 | 21 | } |
| 22 | 22 | |
| 23 | + /** |
|
| 24 | + * @param string $line |
|
| 25 | + */ |
|
| 23 | 26 | protected function parseLine($line) |
| 24 | 27 | { |
| 25 | 28 | |
@@ -68,6 +71,9 @@ discard block |
||
| 68 | 71 | $this->_lastTag = $tag; |
| 69 | 72 | } |
| 70 | 73 | |
| 74 | + /** |
|
| 75 | + * @param string $value |
|
| 76 | + */ |
|
| 71 | 77 | protected function parseTransaction($value) |
| 72 | 78 | { |
| 73 | 79 | $transaction = array( |
@@ -113,6 +119,9 @@ discard block |
||
| 113 | 119 | $this->operations[count($this->operations) - 1]['details'] = $transaction; |
| 114 | 120 | } |
| 115 | 121 | |
| 122 | + /** |
|
| 123 | + * @param string $value |
|
| 124 | + */ |
|
| 116 | 125 | protected function parseOperation($value) |
| 117 | 126 | { |
| 118 | 127 | $this->operations[] = array( |