@@ -45,6 +45,9 @@ |
||
45 | 45 | return '<span class="smallText">Parse Time: ' . $this->timer_total . 's</span>'; |
46 | 46 | } |
47 | 47 | |
48 | + /** |
|
49 | + * @param string $type |
|
50 | + */ |
|
48 | 51 | function write($message, $type) { |
49 | 52 | error_log(strftime(STORE_PARSE_DATE_TIME_FORMAT) . ' [' . $type . '] ' . $message . "\n", 3, STORE_PAGE_PARSE_TIME_LOG); |
50 | 53 | } |
@@ -108,10 +108,16 @@ discard block |
||
108 | 108 | $this->file = $file; |
109 | 109 | } |
110 | 110 | |
111 | + /** |
|
112 | + * @param string $destination |
|
113 | + */ |
|
111 | 114 | function set_destination($destination) { |
112 | 115 | $this->destination = $destination; |
113 | 116 | } |
114 | 117 | |
118 | + /** |
|
119 | + * @param string $permissions |
|
120 | + */ |
|
115 | 121 | function set_permissions($permissions) { |
116 | 122 | $this->permissions = octdec($permissions); |
117 | 123 | } |
@@ -124,6 +130,9 @@ discard block |
||
124 | 130 | $this->tmp_filename = $filename; |
125 | 131 | } |
126 | 132 | |
133 | + /** |
|
134 | + * @param string $extensions |
|
135 | + */ |
|
127 | 136 | function set_extensions($extensions) { |
128 | 137 | if (tep_not_null($extensions)) { |
129 | 138 | if (is_array($extensions)) { |
@@ -160,6 +169,9 @@ discard block |
||
160 | 169 | } |
161 | 170 | } |
162 | 171 | |
172 | + /** |
|
173 | + * @param string $location |
|
174 | + */ |
|
163 | 175 | function set_output_messages($location) { |
164 | 176 | switch ($location) { |
165 | 177 | case 'session': |
@@ -14,6 +14,9 @@ |
||
14 | 14 | |
15 | 15 | //// |
16 | 16 | // Sets the status of a special product |
17 | + /** |
|
18 | + * @param integer $status |
|
19 | + */ |
|
17 | 20 | function tep_set_specials_status($specials_id, $status) { |
18 | 21 | $OSCOM_Db = Registry::get('Db'); |
19 | 22 |
@@ -23,6 +23,9 @@ |
||
23 | 23 | $this->validate_cfg(); |
24 | 24 | } |
25 | 25 | |
26 | + /** |
|
27 | + * @param string $msg |
|
28 | + */ |
|
26 | 29 | function complain($msg){ |
27 | 30 | echo '<div style="position:absolute;left:0;top:0;width:100%;font-size:24px;text-align:center;background:#CCCCCC;color:#660000">MC360 Module: '.$msg.'</div><br />'; |
28 | 31 | } |
@@ -1572,6 +1572,7 @@ |
||
1572 | 1572 | /** |
1573 | 1573 | * Actually connect to the server and call the requested methods, parsing the result |
1574 | 1574 | * You should never have to call this function manually |
1575 | + * @param string $method |
|
1575 | 1576 | */ |
1576 | 1577 | function callServer($method, $params) { |
1577 | 1578 | //Always include the apikey if we are not logging in |
@@ -668,6 +668,9 @@ discard block |
||
668 | 668 | return defined('MODULE_PAYMENT_SAGE_PAY_DIRECT_STATUS'); |
669 | 669 | } |
670 | 670 | |
671 | + /** |
|
672 | + * @param string $parameter |
|
673 | + */ |
|
671 | 674 | function install($parameter = null) { |
672 | 675 | $OSCOM_Db = Registry::get('Db'); |
673 | 676 | |
@@ -867,6 +870,10 @@ discard block |
||
867 | 870 | return $params; |
868 | 871 | } |
869 | 872 | |
873 | + /** |
|
874 | + * @param string $url |
|
875 | + * @param string $parameters |
|
876 | + */ |
|
870 | 877 | function sendTransactionToGateway($url, $parameters) { |
871 | 878 | $server = parse_url($url); |
872 | 879 | |
@@ -985,6 +992,9 @@ discard block |
||
985 | 992 | return !empty($this->_cards); |
986 | 993 | } |
987 | 994 | |
995 | + /** |
|
996 | + * @param string $key |
|
997 | + */ |
|
988 | 998 | function isCard($key) { |
989 | 999 | if (!isset($this->_cards)) { |
990 | 1000 | $this->getCardTypes(); |
@@ -346,6 +346,9 @@ discard block |
||
346 | 346 | return defined('MODULE_PAYMENT_SAGE_PAY_FORM_STATUS'); |
347 | 347 | } |
348 | 348 | |
349 | + /** |
|
350 | + * @param string $parameter |
|
351 | + */ |
|
349 | 352 | function install($parameter = null) { |
350 | 353 | $OSCOM_Db = Registry::get('Db'); |
351 | 354 | |
@@ -517,6 +520,9 @@ discard block |
||
517 | 520 | return $order_total_array; |
518 | 521 | } |
519 | 522 | |
523 | + /** |
|
524 | + * @param string $string |
|
525 | + */ |
|
520 | 526 | function encryptParams($string) { |
521 | 527 | // pad pkcs5 |
522 | 528 | $blocksize = 16; |
@@ -328,6 +328,9 @@ discard block |
||
328 | 328 | return defined('MODULE_PAYMENT_SAGE_PAY_SERVER_STATUS'); |
329 | 329 | } |
330 | 330 | |
331 | + /** |
|
332 | + * @param string $parameter |
|
333 | + */ |
|
331 | 334 | function install($parameter = null) { |
332 | 335 | $OSCOM_Db = Registry::get('Db'); |
333 | 336 | |
@@ -477,6 +480,10 @@ discard block |
||
477 | 480 | return $params; |
478 | 481 | } |
479 | 482 | |
483 | + /** |
|
484 | + * @param string $url |
|
485 | + * @param string $parameters |
|
486 | + */ |
|
480 | 487 | function sendTransactionToGateway($url, $parameters) { |
481 | 488 | $server = parse_url($url); |
482 | 489 | |
@@ -581,6 +588,9 @@ discard block |
||
581 | 588 | return (is_numeric($number) && isset($this->_error_messages[$number])); |
582 | 589 | } |
583 | 590 | |
591 | + /** |
|
592 | + * @param string $url |
|
593 | + */ |
|
584 | 594 | function formatURL($url) { |
585 | 595 | return str_replace('&', '&', $url); |
586 | 596 | } |
@@ -69,6 +69,9 @@ discard block |
||
69 | 69 | return parent::exec($statement); |
70 | 70 | } |
71 | 71 | |
72 | + /** |
|
73 | + * @param string $statement |
|
74 | + */ |
|
72 | 75 | public function prepare($statement, $driver_options = null) |
73 | 76 | { |
74 | 77 | $statement = $this->autoPrefixTables($statement); |
@@ -80,6 +83,9 @@ discard block |
||
80 | 83 | return $DbStatement; |
81 | 84 | } |
82 | 85 | |
86 | + /** |
|
87 | + * @param string $statement |
|
88 | + */ |
|
83 | 89 | public function query($statement) |
84 | 90 | { |
85 | 91 | $statement = $this->autoPrefixTables($statement); |