@@ -101,6 +101,7 @@ |
||
| 101 | 101 | |
| 102 | 102 | /** |
| 103 | 103 | * @param boolean whether this transaction is active |
| 104 | + * @param boolean $value |
|
| 104 | 105 | */ |
| 105 | 106 | protected function setActive($value) |
| 106 | 107 | { |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | * |
| 119 | 119 | * @static |
| 120 | 120 | * @access public |
| 121 | - * @return mixed Returns true on success or PEAR_Error on failure. |
|
| 121 | + * @return boolean Returns true on success or PEAR_Error on failure. |
|
| 122 | 122 | * @param string $pofile path to GNU PO file |
| 123 | 123 | * @param string $mofile path to GNU MO file |
| 124 | 124 | */ |
@@ -260,7 +260,7 @@ discard block |
||
| 260 | 260 | * toMO |
| 261 | 261 | * |
| 262 | 262 | * @access protected |
| 263 | - * @return object File_Gettext_MO |
|
| 263 | + * @return TGettext_MO File_Gettext_MO |
|
| 264 | 264 | */ |
| 265 | 265 | function toMO() |
| 266 | 266 | { |
@@ -274,7 +274,7 @@ discard block |
||
| 274 | 274 | * toPO |
| 275 | 275 | * |
| 276 | 276 | * @access protected |
| 277 | - * @return object File_Gettext_PO |
|
| 277 | + * @return TGettext_PO File_Gettext_PO |
|
| 278 | 278 | */ |
| 279 | 279 | function toPO() |
| 280 | 280 | { |
@@ -109,6 +109,7 @@ |
||
| 109 | 109 | /** |
| 110 | 110 | * Set the culture for this particular message source. |
| 111 | 111 | * @param string the Culture name. |
| 112 | + * @return void |
|
| 112 | 113 | */ |
| 113 | 114 | function setCulture($culture); |
| 114 | 115 | |
@@ -99,9 +99,7 @@ |
||
| 99 | 99 | * Get the data from the cache. |
| 100 | 100 | * @param string $catalogue The translation section. |
| 101 | 101 | * @param string $culture The translation locale, e.g. "en_AU". |
| 102 | - * @param string $filename If the source is a file, this file's modified |
|
| 103 | - * time is newer than the cache's modified time, no cache hit. |
|
| 104 | - * @return mixed Boolean FALSE if no cache hit. Otherwise, translation |
|
| 102 | + * @return false|string Boolean FALSE if no cache hit. Otherwise, translation |
|
| 105 | 103 | * table data for the specified section and locale. |
| 106 | 104 | */ |
| 107 | 105 | public function get($catalogue, $culture, $lastmodified=0) |
@@ -252,6 +252,7 @@ discard block |
||
| 252 | 252 | /** |
| 253 | 253 | * Set the culture for this message source. |
| 254 | 254 | * @param string culture name |
| 255 | + * @param string $culture |
|
| 255 | 256 | */ |
| 256 | 257 | public function setCulture($culture) |
| 257 | 258 | { |
@@ -270,6 +271,7 @@ discard block |
||
| 270 | 271 | /** |
| 271 | 272 | * Get the last modified unix-time for this particular catalogue+variant. |
| 272 | 273 | * @param string catalogue+variant |
| 274 | + * @param string $source |
|
| 273 | 275 | * @return int last modified in unix-time format. |
| 274 | 276 | */ |
| 275 | 277 | protected function getLastModified($source) |
@@ -281,6 +283,7 @@ discard block |
||
| 281 | 283 | * Load the message for a particular catalogue+variant. |
| 282 | 284 | * This methods needs to implemented by subclasses. |
| 283 | 285 | * @param string catalogue+variant. |
| 286 | + * @param string $variant |
|
| 284 | 287 | * @return array of translation messages. |
| 285 | 288 | */ |
| 286 | 289 | protected function &loadData($variant) |
@@ -301,6 +304,7 @@ discard block |
||
| 301 | 304 | /** |
| 302 | 305 | * Determine if the source is valid. |
| 303 | 306 | * @param string catalogue+variant |
| 307 | + * @param string $source |
|
| 304 | 308 | * @return boolean true if valid, false otherwise. |
| 305 | 309 | */ |
| 306 | 310 | protected function isValidSource($source) |
@@ -312,6 +316,7 @@ discard block |
||
| 312 | 316 | * Get all the variants of a particular catalogue. |
| 313 | 317 | * This method must be implemented by subclasses. |
| 314 | 318 | * @param string catalogue name |
| 319 | + * @param string $catalogue |
|
| 315 | 320 | * @return array list of all variants for this catalogue. |
| 316 | 321 | */ |
| 317 | 322 | protected function getCatalogueList($catalogue) |
@@ -200,6 +200,9 @@ discard block |
||
| 200 | 200 | return false; |
| 201 | 201 | } |
| 202 | 202 | |
| 203 | + /** |
|
| 204 | + * @param string $MOFile |
|
| 205 | + */ |
|
| 203 | 206 | private function getPOFile($MOFile) |
| 204 | 207 | { |
| 205 | 208 | $filebase = substr($MOFile, 0, strlen($MOFile)-strlen($this->dataExt)); |
@@ -422,6 +425,9 @@ discard block |
||
| 422 | 425 | return $catalogue; |
| 423 | 426 | } |
| 424 | 427 | |
| 428 | + /** |
|
| 429 | + * @param string $catalogue |
|
| 430 | + */ |
|
| 425 | 431 | protected function createMessageTemplate($catalogue) |
| 426 | 432 | { |
| 427 | 433 | if($catalogue === null) { |
@@ -486,6 +486,9 @@ |
||
| 486 | 486 | return false; |
| 487 | 487 | } |
| 488 | 488 | |
| 489 | + /** |
|
| 490 | + * @param string $catalogue |
|
| 491 | + */ |
|
| 489 | 492 | protected function createMessageTemplate($catalogue) |
| 490 | 493 | { |
| 491 | 494 | if($catalogue === null) { |
@@ -485,6 +485,8 @@ |
||
| 485 | 485 | /** |
| 486 | 486 | * |
| 487 | 487 | * @access private |
| 488 | + * @param string $id |
|
| 489 | + * @param string $data |
|
| 488 | 490 | */ |
| 489 | 491 | function _memoryCacheAdd($id, $data) |
| 490 | 492 | { |
@@ -224,6 +224,9 @@ discard block |
||
| 224 | 224 | return $v_block; |
| 225 | 225 | } |
| 226 | 226 | |
| 227 | + /** |
|
| 228 | + * @param double $p_len |
|
| 229 | + */ |
|
| 227 | 230 | private function _jumpBlock($p_len=null) |
| 228 | 231 | { |
| 229 | 232 | if (is_resource($this->_file)) { |
@@ -317,6 +320,12 @@ discard block |
||
| 317 | 320 | return true; |
| 318 | 321 | } |
| 319 | 322 | |
| 323 | + /** |
|
| 324 | + * @param string $p_path |
|
| 325 | + * @param string $p_mode |
|
| 326 | + * @param integer $p_file_list |
|
| 327 | + * @param string $p_remove_path |
|
| 328 | + */ |
|
| 320 | 329 | protected function _extractList($p_path, &$p_list_detail, $p_mode, |
| 321 | 330 | $p_file_list, $p_remove_path) |
| 322 | 331 | { |