@@ -141,7 +141,7 @@ |
||
141 | 141 | /** |
142 | 142 | * Garbage collection - remove all expired and deleted data |
143 | 143 | * |
144 | - * @return void |
|
144 | + * @return boolean |
|
145 | 145 | */ |
146 | 146 | public function garbageCollect() |
147 | 147 | { |
@@ -197,7 +197,7 @@ |
||
197 | 197 | * @param string $driverName short name of the driver |
198 | 198 | * @param array $options array of options for the driver |
199 | 199 | * |
200 | - * @return DriverInterface|false driver object or false if it could not be instantiated |
|
200 | + * @return null|DriverInterface driver object or false if it could not be instantiated |
|
201 | 201 | */ |
202 | 202 | protected function getDriver($driverName, $options) |
203 | 203 | { |
@@ -43,7 +43,7 @@ |
||
43 | 43 | * |
44 | 44 | * @param array $options driverOptions for Doctrine |
45 | 45 | * |
46 | - * @return Connection|null Reference to the only instance of database class |
|
46 | + * @return \Doctrine\DBAL\Connection Reference to the only instance of database class |
|
47 | 47 | * |
48 | 48 | * @todo change driver to support other databases and support for port, unix_socket and driver options. |
49 | 49 | */ |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | * |
40 | 40 | * @param string $text text string to filter |
41 | 41 | * |
42 | - * @return mixed |
|
42 | + * @return string |
|
43 | 43 | */ |
44 | 44 | public function applyFilter($text) |
45 | 45 | { |
@@ -105,6 +105,12 @@ discard block |
||
105 | 105 | return $decorated; |
106 | 106 | } |
107 | 107 | |
108 | + /** |
|
109 | + * @param null|string $link |
|
110 | + * @param null|string $imageSrc |
|
111 | + * @param null|string $title |
|
112 | + * @param null|string $description |
|
113 | + */ |
|
108 | 114 | protected function mediaBox($link, $imageSrc, $title, $description) |
109 | 115 | { |
110 | 116 | $htmlTemplate = <<<'EOT' |
@@ -48,6 +48,11 @@ |
||
48 | 48 | return $dirlist; |
49 | 49 | } |
50 | 50 | |
51 | +/** |
|
52 | + * @param Xoops\Core\Database\Connection $db |
|
53 | + * @param string $table |
|
54 | + * @param string $field |
|
55 | + */ |
|
51 | 56 | function getDbValue($db, $table, $field, $condition = '') |
52 | 57 | { |
53 | 58 | $xoops = Xoops::getInstance(); |