Completed
Push — master ( d9ae77...ee63f9 )
by Markus
04:15
created
lib/LinkFacet.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -8,6 +8,9 @@
 block discarded – undo
8 8
 
9 9
 class LinkFacet extends Link
10 10
 {
11
+    /**
12
+     * @param string $phref
13
+     */
11 14
     public function __construct($phref, $ptitle = NULL, $pfacetGroup = NULL, $pactiveFacet = FALSE) {
12 15
         parent::__construct ($phref, Link::OPDS_PAGING_TYPE, "http://opds-spec.org/facet", $ptitle, $pfacetGroup, $pactiveFacet);
13 16
         if (!is_null (GetUrlParam (DB))) $this->href = addURLParameter ($this->href, DB, GetUrlParam (DB));
Please login to merge, or discard this patch.
lib/LinkNavigation.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -8,6 +8,9 @@
 block discarded – undo
8 8
 
9 9
 class LinkNavigation extends Link
10 10
 {
11
+    /**
12
+     * @param string $prel
13
+     */
11 14
     public function __construct($phref, $prel = NULL, $ptitle = NULL) {
12 15
         parent::__construct ($phref, Link::OPDS_NAVIGATION_TYPE, $prel, $ptitle);
13 16
         if (!is_null (GetUrlParam (DB))) $this->href = addURLParameter ($this->href, DB, GetUrlParam (DB));
Please login to merge, or discard this patch.
lib/PageCustomize.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -8,6 +8,9 @@  discard block
 block discarded – undo
8 8
 
9 9
 class PageCustomize extends Page
10 10
 {
11
+    /**
12
+     * @param string $key
13
+     */
11 14
     private function isChecked ($key, $testedValue = 1) {
12 15
         $value = getCurrentOption ($key);
13 16
         if (is_array ($value)) {
@@ -22,6 +25,9 @@  discard block
 block discarded – undo
22 25
         return "";
23 26
     }
24 27
 
28
+    /**
29
+     * @param string $key
30
+     */
25 31
     private function isSelected ($key, $value) {
26 32
         if (getCurrentOption ($key) == $value) {
27 33
             return "selected='selected'";
Please login to merge, or discard this patch.
base.php 1 patch
Doc Comments   +11 added lines patch added patch discarded remove patch
@@ -64,6 +64,9 @@  discard block
 block discarded – undo
64 64
     $_SERVER['REDIRECT_STATUS'] = 404;
65 65
 }
66 66
 
67
+/**
68
+ * @param string $name
69
+ */
67 70
 function getURLParam($name, $default = NULL)
68 71
 {
69 72
     if (!empty ($_GET) && isset($_GET[$name]) && $_GET[$name] != '') {
@@ -104,6 +107,11 @@  discard block
 block discarded – undo
104 107
     return $url . '?v=' . VERSION;
105 108
 }
106 109
 
110
+/**
111
+ * @param string $xml
112
+ *
113
+ * @return string
114
+ */
107 115
 function xml2xhtml($xml)
108 116
 {
109 117
     return preg_replace_callback('#<(\w+)([^>]*)\s*/>#s', function($m) {
@@ -326,6 +334,9 @@  discard block
 block discarded – undo
326 334
     return $phrase;
327 335
 }
328 336
 
337
+/**
338
+ * @param string $paramName
339
+ */
329 340
 function addURLParameter($urlParams, $paramName, $paramValue)
330 341
 {
331 342
     if (empty ($urlParams)) {
Please login to merge, or discard this patch.
lib/Base.php 1 patch
Doc Comments   +18 added lines patch added patch discarded remove patch
@@ -90,6 +90,9 @@  discard block
 block discarded – undo
90 90
         return '';
91 91
     }
92 92
 
93
+    /**
94
+     * @return string
95
+     */
93 96
     public static function getDbDirectory($database = NULL)
94 97
     {
95 98
         global $config;
@@ -154,11 +157,19 @@  discard block
 block discarded – undo
154 157
         self::$db = NULL;
155 158
     }
156 159
 
160
+    /**
161
+     * @param string $query
162
+     */
157 163
     public static function executeQuerySingle($query, $database = NULL)
158 164
     {
159 165
         return self::getDb($database)->query($query)->fetchColumn();
160 166
     }
161 167
 
168
+    /**
169
+     * @param string $table
170
+     * @param string $id
171
+     * @param string $numberOfString
172
+     */
162 173
     public static function getCountGeneric($table, $id, $pageId, $numberOfString = NULL)
163 174
     {
164 175
         if (!$numberOfString) {
@@ -174,6 +185,10 @@  discard block
 block discarded – undo
174 185
         return $entry;
175 186
     }
176 187
 
188
+    /**
189
+     * @param string $columns
190
+     * @param string $category
191
+     */
177 192
     public static function getEntryArrayWithBookNumber($query, $columns, $params, $category)
178 193
     {
179 194
         /* @var $result PDOStatement */
@@ -197,6 +212,9 @@  discard block
 block discarded – undo
197 212
         return $entryArray;
198 213
     }
199 214
 
215
+    /**
216
+     * @param string $filter
217
+     */
200 218
     public static function executeQuery($query, $columns, $filter, $params, $n, $database = NULL, $numberPerPage = NULL)
201 219
     {
202 220
         $totalResult = -1;
Please login to merge, or discard this patch.
lib/Book.php 1 patch
Doc Comments   +17 added lines, -1 removed lines patch added patch discarded remove patch
@@ -144,6 +144,9 @@  discard block
 block discarded – undo
144 144
         return 'index.php' . $urlParam;
145 145
     }
146 146
 
147
+    /**
148
+     * @return string
149
+     */
147 150
     public function getTitle () {
148 151
         return $this->title;
149 152
     }
@@ -331,6 +334,9 @@  discard block
 block discarded – undo
331 334
         return reset($reduced);
332 335
     }
333 336
 
337
+    /**
338
+     * @param string $extension
339
+     */
334 340
     public function getFilePath($extension, $idData = NULL, $relative = false)
335 341
     {
336 342
         if ($extension == 'jpg')
@@ -464,6 +470,9 @@  discard block
 block discarded – undo
464 470
             $this->getLinkArray(), $this);
465 471
     }
466 472
 
473
+    /**
474
+     * @param integer $database
475
+     */
467 476
     public static function getBookCount($database = NULL) {
468 477
         return Base::executeQuerySingle('select count(*) from books', $database);
469 478
     }
@@ -512,7 +521,7 @@  discard block
 block discarded – undo
512 521
     }
513 522
 
514 523
     /**
515
-     * @param $customColumn CustomColumn
524
+     * @param CustomColumn $customColumn CustomColumn
516 525
      * @param $id integer
517 526
      * @param $n integer
518 527
      * @return array
@@ -552,6 +561,10 @@  discard block
 block discarded – undo
552 561
         return NULL;
553 562
     }
554 563
 
564
+    /**
565
+     * @param integer $database
566
+     * @param integer $numberPerPage
567
+     */
555 568
     public static function getBooksByQuery($query, $n, $database = NULL, $numberPerPage = NULL) {
556 569
         $i = 0;
557 570
         $critArray = array();
@@ -599,6 +612,9 @@  discard block
 block discarded – undo
599 612
         return $entryArray;
600 613
     }
601 614
 
615
+    /**
616
+     * @param integer $numberPerPage
617
+     */
602 618
     public static function getBooksByStartingLetter($letter, $n, $database = NULL, $numberPerPage = NULL) {
603 619
         return self::getEntryArray(self::SQL_BOOKS_BY_FIRST_LETTER, array($letter . '%'), $n, $database, $numberPerPage);
604 620
     }
Please login to merge, or discard this patch.