@@ -21,7 +21,7 @@ |
||
21 | 21 | |
22 | 22 | /** |
23 | 23 | * constructor |
24 | - * @param null $id |
|
24 | + * @param integer $id |
|
25 | 25 | */ |
26 | 26 | public function __construct($id = null) |
27 | 27 | { |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | * create a new answer |
28 | 28 | * |
29 | 29 | * @param bool $isNew flag the new objects as "new"? |
30 | - * @return object Answer |
|
30 | + * @return Answer Answer |
|
31 | 31 | */ |
32 | 32 | public function create($isNew = true) |
33 | 33 | { |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | /** |
70 | 70 | * insert a new answer in the database |
71 | 71 | * |
72 | - * @param \XoopsObject $answerObj reference to the <a href='psi_element://sfAnswer'>sfAnswer</a> object |
|
72 | + * @param Answer $answerObj reference to the <a href='psi_element://sfAnswer'>sfAnswer</a> object |
|
73 | 73 | * @param bool $force |
74 | 74 | * @return bool FALSE if failed, TRUE if already present and unchanged or successful |
75 | 75 | */ |
@@ -115,7 +115,7 @@ |
||
115 | 115 | } |
116 | 116 | |
117 | 117 | /** |
118 | - * @return mixed |
|
118 | + * @return integer |
|
119 | 119 | */ |
120 | 120 | public function parentid() |
121 | 121 | { |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | * create a new category |
26 | 26 | * |
27 | 27 | * @param bool $isNew flag the new objects as "new"? |
28 | - * @return object Smartfaq\Category |
|
28 | + * @return Category Smartfaq\Category |
|
29 | 29 | */ |
30 | 30 | public function create($isNew = true) |
31 | 31 | { |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | /** |
68 | 68 | * insert a new category in the database |
69 | 69 | * |
70 | - * @param \XoopsObject $category reference to the {@link Smartfaq\Category} |
|
70 | + * @param Category $category reference to the {@link Smartfaq\Category} |
|
71 | 71 | * object |
72 | 72 | * @param bool $force |
73 | 73 | * @return bool FALSE if failed, TRUE if already present and unchanged or successful |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | $sql = sprintf( |
93 | 93 | 'INSERT INTO %s (parentid, name, description, total, weight, created) VALUES (%u, %s, %s, %u, %u, %u)', |
94 | 94 | $this->db->prefix('smartfaq_categories'), |
95 | - $parentid, |
|
95 | + $parentid, |
|
96 | 96 | $this->db->quoteString($name), |
97 | 97 | $this->db->quoteString($description), |
98 | 98 | $total, |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | 'UPDATE %s SET parentid = %u, name = %s, description = %s, total = %s, weight = %u, created = %u WHERE categoryid = %u', |
105 | 105 | $this->db->prefix('smartfaq_categories'), |
106 | 106 | $parentid, |
107 | - $this->db->quoteString($name), |
|
107 | + $this->db->quoteString($name), |
|
108 | 108 | $this->db->quoteString($description), |
109 | 109 | $total, |
110 | 110 | $weight, |
@@ -226,7 +226,7 @@ |
||
226 | 226 | } |
227 | 227 | |
228 | 228 | /** |
229 | - * @return mixed |
|
229 | + * @return integer |
|
230 | 230 | */ |
231 | 231 | public function uid() |
232 | 232 | { |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | /** |
69 | 69 | * insert a new faq in the database |
70 | 70 | * |
71 | - * @param \XoopsObject $faq reference to the {@link Smartfaq\Faq} |
|
71 | + * @param Faq $faq reference to the {@link Smartfaq\Faq} |
|
72 | 72 | * object |
73 | 73 | * @param bool $force |
74 | 74 | * @return bool FALSE if failed, TRUE if already present and unchanged or successful |
@@ -518,7 +518,7 @@ discard block |
||
518 | 518 | * @param string $order |
519 | 519 | * @param string $notNullFields |
520 | 520 | * @param bool $asobject |
521 | - * @param null $otherCriteria |
|
521 | + * @param null|\CriteriaCompo $otherCriteria |
|
522 | 522 | * @return array |
523 | 523 | */ |
524 | 524 | public function getFaqs( |
@@ -1035,7 +1035,7 @@ discard block |
||
1035 | 1035 | |
1036 | 1036 | /** |
1037 | 1037 | * @param int $cat_id |
1038 | - * @param $status |
|
1038 | + * @param string $status |
|
1039 | 1039 | * @return array |
1040 | 1040 | */ |
1041 | 1041 | public function getCountsByCat($cat_id = 0, $status) |
@@ -94,7 +94,7 @@ |
||
94 | 94 | if ($faq->isNew()) { |
95 | 95 | $sql = sprintf( |
96 | 96 | 'INSERT INTO %s (faqid, categoryid, question, howdoi, diduno, uid, datesub, `status`, counter, weight, html, smiley, xcodes, cancomment, comments, notifypub, modulelink, contextpage, exacturl, partialview) VALUES (NULL, %u, %s, %s, %s, %u, %u, %u, %u, %u, %u, %u, %u, %u, %u, %u, %s, %s, %u, %u)', |
97 | - $this->db->prefix('smartfaq_faq'), |
|
97 | + $this->db->prefix('smartfaq_faq'), |
|
98 | 98 | $categoryid, |
99 | 99 | $this->db->quoteString($question), |
100 | 100 | $this->db->quoteString($howdoi), |
@@ -70,7 +70,7 @@ |
||
70 | 70 | /** |
71 | 71 | * Constructor |
72 | 72 | * @param $caption |
73 | - * @param $name |
|
73 | + * @param string $name |
|
74 | 74 | * @param $groupId |
75 | 75 | * @param null $values |
76 | 76 | */ |
@@ -201,20 +201,20 @@ |
||
201 | 201 | $tree .= ' checked'; |
202 | 202 | } |
203 | 203 | $tree .= '>' |
204 | - . $option['name'] |
|
205 | - . '<input type="hidden" name="' |
|
206 | - . $this->getName() |
|
207 | - . '[parents][' |
|
208 | - . $option['id'] |
|
209 | - . ']" value="' |
|
210 | - . implode(':', $parentIds) |
|
211 | - . '"><input type="hidden" name="' |
|
212 | - . $this->getName() |
|
213 | - . '[itemname][' |
|
214 | - . $option['id'] |
|
215 | - . ']" value="' |
|
216 | - . htmlspecialchars($option['name'], ENT_QUOTES) |
|
217 | - . "\"><br>\n"; |
|
204 | + . $option['name'] |
|
205 | + . '<input type="hidden" name="' |
|
206 | + . $this->getName() |
|
207 | + . '[parents][' |
|
208 | + . $option['id'] |
|
209 | + . ']" value="' |
|
210 | + . implode(':', $parentIds) |
|
211 | + . '"><input type="hidden" name="' |
|
212 | + . $this->getName() |
|
213 | + . '[itemname][' |
|
214 | + . $option['id'] |
|
215 | + . ']" value="' |
|
216 | + . htmlspecialchars($option['name'], ENT_QUOTES) |
|
217 | + . "\"><br>\n"; |
|
218 | 218 | if (isset($option['children'])) { |
219 | 219 | foreach ($option['children'] as $child) { |
220 | 220 | array_push($parentIds, $option['id']); |
@@ -178,7 +178,7 @@ |
||
178 | 178 | } |
179 | 179 | |
180 | 180 | /** |
181 | - * @param $field |
|
181 | + * @param string $field |
|
182 | 182 | * @return bool |
183 | 183 | */ |
184 | 184 | public function fieldExists($field) |
@@ -519,7 +519,7 @@ |
||
519 | 519 | |
520 | 520 | /** |
521 | 521 | * @param string $url |
522 | - * @return mixed|string |
|
522 | + * @return string |
|
523 | 523 | */ |
524 | 524 | public static function getXoopslink($url = '') |
525 | 525 | { |