@@ -109,6 +109,9 @@ discard block |
||
109 | 109 | } |
110 | 110 | } |
111 | 111 | |
112 | + /** |
|
113 | + * @param string $singular |
|
114 | + */ |
|
112 | 115 | public static function makePlural($count, $singular) |
113 | 116 | { |
114 | 117 | $count = (int)$count; |
@@ -224,6 +227,9 @@ discard block |
||
224 | 227 | } |
225 | 228 | } |
226 | 229 | |
230 | + /** |
|
231 | + * @param integer $start |
|
232 | + */ |
|
227 | 233 | public static function ltrim($str, $start, $delim = '...') |
228 | 234 | { |
229 | 235 | $pos = strpos($str, ' ', $start); |
@@ -354,6 +360,9 @@ discard block |
||
354 | 360 | return $html; |
355 | 361 | } |
356 | 362 | |
363 | + /** |
|
364 | + * @param string $text |
|
365 | + */ |
|
357 | 366 | public static function encrypt($text) |
358 | 367 | { |
359 | 368 | try { |
@@ -453,6 +462,9 @@ discard block |
||
453 | 462 | } |
454 | 463 | } |
455 | 464 | |
465 | + /** |
|
466 | + * @param string $date |
|
467 | + */ |
|
456 | 468 | public static function time2str($date, $today = false) |
457 | 469 | { |
458 | 470 | if (!$today) { |
@@ -532,6 +544,9 @@ discard block |
||
532 | 544 | } |
533 | 545 | } |
534 | 546 | |
547 | + /** |
|
548 | + * @param string $str |
|
549 | + */ |
|
535 | 550 | public static function toBytes($str) |
536 | 551 | { |
537 | 552 | $val = trim($str); |
@@ -110,7 +110,7 @@ |
||
110 | 110 | /** |
111 | 111 | * @param string|null $action |
112 | 112 | * @param string|null $format |
113 | - * @return mixed |
|
113 | + * @return string |
|
114 | 114 | * @throws Ajde_Exception |
115 | 115 | * @throws Exception |
116 | 116 | */ |
@@ -38,11 +38,17 @@ discard block |
||
38 | 38 | } |
39 | 39 | } |
40 | 40 | |
41 | + /** |
|
42 | + * @param integer $days |
|
43 | + */ |
|
41 | 44 | public function setLifetime($days) |
42 | 45 | { |
43 | 46 | $this->_lifetime = $days; |
44 | 47 | } |
45 | 48 | |
49 | + /** |
|
50 | + * @param string $value |
|
51 | + */ |
|
46 | 52 | public function set($key, $value) |
47 | 53 | { |
48 | 54 | parent::set($key, $value); |
@@ -71,6 +77,10 @@ discard block |
||
71 | 77 | } |
72 | 78 | } |
73 | 79 | |
80 | + /** |
|
81 | + * @param string|false $value |
|
82 | + * @param integer $lifetime |
|
83 | + */ |
|
74 | 84 | protected function _setcookie($value, $lifetime) |
75 | 85 | { |
76 | 86 | $path = Config::get('site_path'); |
@@ -6,7 +6,6 @@ |
||
6 | 6 | |
7 | 7 | /** |
8 | 8 | * |
9 | - * @param int $id |
|
10 | 9 | * @return Ajde_Crud_Cms_Meta_Type |
11 | 10 | */ |
12 | 11 | public static function fromType($type) |
@@ -34,6 +34,7 @@ discard block |
||
34 | 34 | |
35 | 35 | /** |
36 | 36 | * Gets called after model save of this meta type |
37 | + * @param boolean $value |
|
37 | 38 | */ |
38 | 39 | public function afterSave(MetaModel $meta, $value, Ajde_Model $model) |
39 | 40 | { |
@@ -42,6 +43,7 @@ discard block |
||
42 | 43 | |
43 | 44 | /** |
44 | 45 | * |
46 | + * @param string $name |
|
45 | 47 | * @return Ajde_Crud_Options_Fields_Field |
46 | 48 | */ |
47 | 49 | protected function fieldFactory($name) |
@@ -2,5 +2,8 @@ |
||
2 | 2 | |
3 | 3 | abstract class Ajde_Crud_Editor extends Ajde_Object_Standard |
4 | 4 | { |
5 | + /** |
|
6 | + * @param Ajde_Template $view |
|
7 | + */ |
|
5 | 8 | abstract function getResources(&$view); |
6 | 9 | } |
@@ -143,6 +143,9 @@ |
||
143 | 143 | return $this->_getTemplate('field/' . $this->_type); |
144 | 144 | } |
145 | 145 | |
146 | + /** |
|
147 | + * @param string $action |
|
148 | + */ |
|
146 | 149 | protected function _getTemplate($action) |
147 | 150 | { |
148 | 151 | $template = null; |
@@ -185,6 +185,9 @@ |
||
185 | 185 | return $this->bootstrap2(); |
186 | 186 | } |
187 | 187 | |
188 | + /** |
|
189 | + * @param string[] $icons |
|
190 | + */ |
|
188 | 191 | private function convertBootstrapIcons($icons) |
189 | 192 | { |
190 | 193 | return $icons; |
@@ -23,6 +23,9 @@ discard block |
||
23 | 23 | |
24 | 24 | // Protected functions |
25 | 25 | |
26 | + /** |
|
27 | + * @param string $name |
|
28 | + */ |
|
26 | 29 | protected function _select($name, $key = null) |
27 | 30 | { |
28 | 31 | $key = isset($key) ? $key : $name; |
@@ -39,6 +42,9 @@ discard block |
||
39 | 42 | return $new; |
40 | 43 | } |
41 | 44 | |
45 | + /** |
|
46 | + * @param string $key |
|
47 | + */ |
|
42 | 48 | protected function _set($key, $value) |
43 | 49 | { |
44 | 50 | parent::_set($key, $value); |