@@ -12,7 +12,6 @@ |
||
| 12 | 12 | |
| 13 | 13 | use OSC\OM\HTML; |
| 14 | 14 | use OSC\OM\OSCOM; |
| 15 | - use OSC\OM\Registry; |
|
| 16 | 15 | |
| 17 | 16 | require('includes/application_top.php'); |
| 18 | 17 | |
@@ -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 | |
@@ -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 | |
@@ -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 | |
@@ -103,6 +103,10 @@ discard block |
||
| 103 | 103 | return $image; |
| 104 | 104 | } |
| 105 | 105 | |
| 106 | + /** |
|
| 107 | + * @param string $name |
|
| 108 | + * @param string $action |
|
| 109 | + */ |
|
| 106 | 110 | public static function form($name, $action, $method = 'post', $parameters = '', array $flags = []) |
| 107 | 111 | { |
| 108 | 112 | if (!isset($flags['tokenize']) || !is_bool($flags['tokenize'])) { |
@@ -175,6 +179,9 @@ discard block |
||
| 175 | 179 | return static::inputField($name, null, $parameters, 'file', false); |
| 176 | 180 | } |
| 177 | 181 | |
| 182 | + /** |
|
| 183 | + * @param string $type |
|
| 184 | + */ |
|
| 178 | 185 | protected static function selectionField($name, $type, $value = '', $checked = false, $parameters = '') |
| 179 | 186 | { |
| 180 | 187 | $selection = '<input type="' . static::output($type) . '" name="' . static::output($name) . '"'; |
@@ -196,6 +203,9 @@ discard block |
||
| 196 | 203 | return $selection; |
| 197 | 204 | } |
| 198 | 205 | |
| 206 | + /** |
|
| 207 | + * @param string $name |
|
| 208 | + */ |
|
| 199 | 209 | public static function checkboxField($name, $value = '', $checked = false, $parameters = '') |
| 200 | 210 | { |
| 201 | 211 | return static::selectionField($name, 'checkbox', $value, $checked, $parameters); |
@@ -206,6 +216,11 @@ discard block |
||
| 206 | 216 | return static::selectionField($name, 'radio', $value, $checked, $parameters); |
| 207 | 217 | } |
| 208 | 218 | |
| 219 | + /** |
|
| 220 | + * @param string $name |
|
| 221 | + * @param integer $width |
|
| 222 | + * @param integer $height |
|
| 223 | + */ |
|
| 209 | 224 | public static function textareaField($name, $width, $height, $text = '', $parameters = '', $reinsert_value = true, $class = 'form-control') |
| 210 | 225 | { |
| 211 | 226 | $field = '<textarea name="' . static::output($name) . '" cols="' . static::output($width) . '" rows="' . static::output($height) . '"'; |
@@ -325,6 +340,11 @@ discard block |
||
| 325 | 340 | return $field; |
| 326 | 341 | } |
| 327 | 342 | |
| 343 | + /** |
|
| 344 | + * @param string $title |
|
| 345 | + * @param string $icon |
|
| 346 | + * @param string $link |
|
| 347 | + */ |
|
| 328 | 348 | public static function button($title = null, $icon = null, $link = null, $params = null, $class = null) |
| 329 | 349 | { |
| 330 | 350 | $types = ['submit', 'button', 'reset']; |
@@ -10,7 +10,6 @@ |
||
| 10 | 10 | Released under the GNU General Public License |
| 11 | 11 | */ |
| 12 | 12 | |
| 13 | - use OSC\OM\OSCOM; |
|
| 14 | 13 | use OSC\OM\Registry; |
| 15 | 14 | |
| 16 | 15 | class cm_i_new_products { |
@@ -10,7 +10,6 @@ |
||
| 10 | 10 | Released under the GNU General Public License |
| 11 | 11 | */ |
| 12 | 12 | |
| 13 | - use OSC\OM\OSCOM; |
|
| 14 | 13 | use OSC\OM\Registry; |
| 15 | 14 | |
| 16 | 15 | class cm_i_new_products { |
@@ -10,7 +10,6 @@ |
||
| 10 | 10 | Released under the GNU General Public License |
| 11 | 11 | */ |
| 12 | 12 | |
| 13 | - use OSC\OM\OSCOM; |
|
| 14 | 13 | use OSC\OM\Registry; |
| 15 | 14 | |
| 16 | 15 | class cm_i_new_products { |