@@ -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) |
@@ -8,7 +8,6 @@ |
||
| 8 | 8 | |
| 9 | 9 | namespace OSC\OM; |
| 10 | 10 | |
| 11 | -use OSC\OM\Db; |
|
| 12 | 11 | use OSC\OM\HTML; |
| 13 | 12 | use OSC\OM\OSCOM; |
| 14 | 13 | use OSC\OM\Registry; |
@@ -99,6 +99,10 @@ discard block |
||
| 99 | 99 | return $image; |
| 100 | 100 | } |
| 101 | 101 | |
| 102 | + /** |
|
| 103 | + * @param string $name |
|
| 104 | + * @param string $action |
|
| 105 | + */ |
|
| 102 | 106 | public static function form($name, $action, $method = 'post', $parameters = '', array $flags = []) |
| 103 | 107 | { |
| 104 | 108 | if (!isset($flags['tokenize']) || !is_bool($flags['tokenize'])) { |
@@ -166,6 +170,9 @@ discard block |
||
| 166 | 170 | return static::inputField($name, $value, $parameters, 'password', false); |
| 167 | 171 | } |
| 168 | 172 | |
| 173 | + /** |
|
| 174 | + * @param string $type |
|
| 175 | + */ |
|
| 169 | 176 | protected static function selectionField($name, $type, $value = '', $checked = false, $parameters = '') |
| 170 | 177 | { |
| 171 | 178 | $selection = '<input type="' . static::output($type) . '" name="' . static::output($name) . '"'; |
@@ -187,6 +194,9 @@ discard block |
||
| 187 | 194 | return $selection; |
| 188 | 195 | } |
| 189 | 196 | |
| 197 | + /** |
|
| 198 | + * @param string $name |
|
| 199 | + */ |
|
| 190 | 200 | public static function checkboxField($name, $value = '', $checked = false, $parameters = '') |
| 191 | 201 | { |
| 192 | 202 | return static::selectionField($name, 'checkbox', $value, $checked, $parameters); |
@@ -197,6 +207,9 @@ discard block |
||
| 197 | 207 | return static::selectionField($name, 'radio', $value, $checked, $parameters); |
| 198 | 208 | } |
| 199 | 209 | |
| 210 | + /** |
|
| 211 | + * @param string $name |
|
| 212 | + */ |
|
| 200 | 213 | public static function textareaField($name, $width, $height, $text = '', $parameters = '', $reinsert_value = true, $class = 'form-control') |
| 201 | 214 | { |
| 202 | 215 | $field = '<textarea name="' . static::output($name) . '" cols="' . static::output($width) . '" rows="' . static::output($height) . '"'; |
@@ -78,6 +78,9 @@ |
||
| 78 | 78 | return Registry::get('Site')->getPage()->isRPC(); |
| 79 | 79 | } |
| 80 | 80 | |
| 81 | + /** |
|
| 82 | + * @param string $parameters |
|
| 83 | + */ |
|
| 81 | 84 | public static function link($page, $parameters = null, $connection = 'NONSSL', $add_session_id = true, $search_engine_safe = true) |
| 82 | 85 | { |
| 83 | 86 | global $request_type; |
@@ -81,6 +81,9 @@ |
||
| 81 | 81 | } |
| 82 | 82 | } |
| 83 | 83 | |
| 84 | + /** |
|
| 85 | + * @param string $action |
|
| 86 | + */ |
|
| 84 | 87 | public function actionExists($action) |
| 85 | 88 | { |
| 86 | 89 | if (class_exists($action)) { |
@@ -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)) { |
@@ -8,8 +8,6 @@ |
||
| 8 | 8 | |
| 9 | 9 | namespace OSC\OM; |
| 10 | 10 | |
| 11 | -use OSC\OM\HTML; |
|
| 12 | - |
|
| 13 | 11 | abstract class SitesAbstract implements \OSC\OM\SitesInterface |
| 14 | 12 | { |
| 15 | 13 | protected $code; |
@@ -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\OSCOM; |
|
| 16 | 15 | use OSC\OM\Registry; |
| 17 | 16 | |
| 18 | 17 | class Admin extends \OSC\OM\SitesAbstract |
@@ -9,7 +9,6 @@ |
||
| 9 | 9 | namespace OSC\Sites\Shop\Pages\Account\Actions; |
| 10 | 10 | |
| 11 | 11 | use OSC\OM\OSCOM; |
| 12 | -use OSC\OM\Registry; |
|
| 13 | 12 | |
| 14 | 13 | class LogIn extends \OSC\OM\PagesActionsAbstract |
| 15 | 14 | { |