@@ -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); |
@@ -32,6 +32,9 @@ |
||
32 | 32 | return parent::bindValue($parameter, $value, $data_type); |
33 | 33 | } |
34 | 34 | |
35 | + /** |
|
36 | + * @param string $parameter |
|
37 | + */ |
|
35 | 38 | public function bindInt($parameter, $value) |
36 | 39 | { |
37 | 40 | // force type to int (see http://bugs.php.net/bug.php?id=44639) |
@@ -9,10 +9,8 @@ |
||
9 | 9 | namespace OSC\OM; |
10 | 10 | |
11 | 11 | use OSC\OM\Cache; |
12 | -use OSC\OM\Db; |
|
13 | 12 | use OSC\OM\HTML; |
14 | 13 | use OSC\OM\OSCOM; |
15 | -use OSC\OM\Registry; |
|
16 | 14 | |
17 | 15 | class DbStatement extends \PDOStatement |
18 | 16 | { |
@@ -12,6 +12,9 @@ discard block |
||
12 | 12 | { |
13 | 13 | private static $data = []; |
14 | 14 | |
15 | + /** |
|
16 | + * @param string $key |
|
17 | + */ |
|
15 | 18 | public static function get($key) |
16 | 19 | { |
17 | 20 | if (!static::exists($key)) { |
@@ -23,6 +26,9 @@ discard block |
||
23 | 26 | return static::$data[$key]; |
24 | 27 | } |
25 | 28 | |
29 | + /** |
|
30 | + * @param string $key |
|
31 | + */ |
|
26 | 32 | public static function set($key, $value, $force = false) |
27 | 33 | { |
28 | 34 | if (!is_object($value)) { |
@@ -12,7 +12,6 @@ |
||
12 | 12 | use OSC\OM\Cache; |
13 | 13 | use OSC\OM\Db; |
14 | 14 | use OSC\OM\Hooks; |
15 | -use OSC\OM\HTML; |
|
16 | 15 | use OSC\OM\OSCOM; |
17 | 16 | use OSC\OM\Registry; |
18 | 17 |
@@ -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 |
@@ -53,6 +53,11 @@ discard block |
||
53 | 53 | // ------------------------------------------------------------------- |
54 | 54 | // Parse RSS file and returns associative array. |
55 | 55 | // ------------------------------------------------------------------- |
56 | + |
|
57 | + /** |
|
58 | + * @param string $rss_url |
|
59 | + * @param string $key |
|
60 | + */ |
|
56 | 61 | function Get ($rss_url, $key = null) { |
57 | 62 | // If CACHE ENABLED |
58 | 63 | if ($this->cache_dir != '') { |
@@ -114,6 +119,10 @@ discard block |
||
114 | 119 | // ------------------------------------------------------------------- |
115 | 120 | // Replace HTML entities &something; by real characters |
116 | 121 | // ------------------------------------------------------------------- |
122 | + |
|
123 | + /** |
|
124 | + * @param string $string |
|
125 | + */ |
|
117 | 126 | function unhtmlentities ($string) { |
118 | 127 | // Get HTML entities table |
119 | 128 | $trans_tbl = get_html_translation_table (HTML_ENTITIES, ENT_QUOTES); |
@@ -10,7 +10,6 @@ |
||
10 | 10 | Released under the GNU General Public License |
11 | 11 | */ |
12 | 12 | |
13 | - use OSC\OM\HTML; |
|
14 | 13 | use OSC\OM\OSCOM; |
15 | 14 | use OSC\OM\Registry; |
16 | 15 |
@@ -32,6 +32,9 @@ |
||
32 | 32 | return MODULE_SECURITY_CHECK_EXTENDED_EXT_DIRECTORY_LISTING_HTTP_200; |
33 | 33 | } |
34 | 34 | |
35 | + /** |
|
36 | + * @param string $url |
|
37 | + */ |
|
35 | 38 | function getHttpRequest($url) { |
36 | 39 | $server = parse_url($url); |
37 | 40 |
@@ -54,6 +54,9 @@ discard block |
||
54 | 54 | } |
55 | 55 | } |
56 | 56 | |
57 | + /** |
|
58 | + * @param integer $parent_id |
|
59 | + */ |
|
57 | 60 | protected function _buildBranch($parent_id, $level = 0) { |
58 | 61 | $result = ((($level === 0) && ($this->parent_group_apply_to_root === true)) || ($level > 0)) ? $this->parent_group_start_string : null; |
59 | 62 | |
@@ -278,6 +281,10 @@ discard block |
||
278 | 281 | $this->parent_end_string = $parent_end_string; |
279 | 282 | } |
280 | 283 | |
284 | + /** |
|
285 | + * @param string $parent_group_start_string |
|
286 | + * @param string $parent_group_end_string |
|
287 | + */ |
|
281 | 288 | function setParentGroupString($parent_group_start_string, $parent_group_end_string, $apply_to_root = false) { |
282 | 289 | $this->parent_group_start_string = $parent_group_start_string; |
283 | 290 | $this->parent_group_end_string = $parent_group_end_string; |
@@ -301,6 +308,9 @@ discard block |
||
301 | 308 | } |
302 | 309 | } |
303 | 310 | |
311 | + /** |
|
312 | + * @param string $spacer_string |
|
313 | + */ |
|
304 | 314 | function setSpacerString($spacer_string, $spacer_multiplier = 2) { |
305 | 315 | $this->spacer_string = $spacer_string; |
306 | 316 | $this->spacer_multiplier = $spacer_multiplier; |