@@ -27,6 +27,9 @@ |
||
| 27 | 27 | private $_config; |
| 28 | 28 | private $_http; |
| 29 | 29 | |
| 30 | + /** |
|
| 31 | + * @param Gateway $gateway |
|
| 32 | + */ |
|
| 30 | 33 | public function __construct($gateway) |
| 31 | 34 | { |
| 32 | 35 | $this->_gateway = $gateway; |
@@ -27,6 +27,9 @@ |
||
| 27 | 27 | private $_config; |
| 28 | 28 | private $_http; |
| 29 | 29 | |
| 30 | + /** |
|
| 31 | + * @param Gateway $gateway |
|
| 32 | + */ |
|
| 30 | 33 | public function __construct($gateway) |
| 31 | 34 | { |
| 32 | 35 | $this->_gateway = $gateway; |
@@ -182,6 +182,9 @@ discard block |
||
| 182 | 182 | return false; |
| 183 | 183 | } |
| 184 | 184 | |
| 185 | + /** |
|
| 186 | + * @param string $info |
|
| 187 | + */ |
|
| 185 | 188 | function getModuleInfo($module, $info) { |
| 186 | 189 | $class = 'OSCOM_Braintree_' . $module; |
| 187 | 190 | |
@@ -368,6 +371,10 @@ discard block |
||
| 368 | 371 | return $result; |
| 369 | 372 | } |
| 370 | 373 | |
| 374 | + /** |
|
| 375 | + * @param string $link |
|
| 376 | + * @param string $type |
|
| 377 | + */ |
|
| 371 | 378 | function drawButton($title = null, $link = null, $type = null, $params = null, $force_css = false) { |
| 372 | 379 | $colours = array('success' => '#1cb841', |
| 373 | 380 | 'error' => '#ca3c3c', |
@@ -424,6 +431,9 @@ discard block |
||
| 424 | 431 | return $button; |
| 425 | 432 | } |
| 426 | 433 | |
| 434 | + /** |
|
| 435 | + * @param integer $length |
|
| 436 | + */ |
|
| 427 | 437 | function createRandomValue($length, $type = 'mixed') { |
| 428 | 438 | if ( ($type != 'mixed') && ($type != 'chars') && ($type != 'digits')) $type = 'mixed'; |
| 429 | 439 | |
@@ -508,6 +518,9 @@ discard block |
||
| 508 | 518 | } |
| 509 | 519 | } |
| 510 | 520 | |
| 521 | + /** |
|
| 522 | + * @param string $key |
|
| 523 | + */ |
|
| 511 | 524 | function deleteParameter($key) { |
| 512 | 525 | tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key = '" . tep_db_input($key) . "'"); |
| 513 | 526 | } |
@@ -672,6 +685,9 @@ discard block |
||
| 672 | 685 | } |
| 673 | 686 | } |
| 674 | 687 | |
| 688 | + /** |
|
| 689 | + * @param string $filename |
|
| 690 | + */ |
|
| 675 | 691 | public function loadLanguageFile($filename, $lang = null) { |
| 676 | 692 | global $language; |
| 677 | 693 | |
@@ -713,6 +729,9 @@ discard block |
||
| 713 | 729 | } |
| 714 | 730 | } |
| 715 | 731 | |
| 732 | + /** |
|
| 733 | + * @param string $key |
|
| 734 | + */ |
|
| 716 | 735 | function getDef($key, $values = null) { |
| 717 | 736 | $def = isset($this->_definitions[$key]) ? $this->_definitions[$key] : $key; |
| 718 | 737 | |