| @@ 99-103 (lines=5) @@ | ||
| 96 | ['authorId', '\App::$User::isExist'] |
|
| 97 | ]; |
|
| 98 | ||
| 99 | foreach (App::$Properties->get('languages') as $lang) { |
|
| 100 | $res[] = ['title.' . $lang, 'length_max', 120, null, true, true]; |
|
| 101 | $res[] = ['keywords.' . $lang, 'length_max', 150]; |
|
| 102 | $res[] = ['description.' . $lang, 'length_max', 250]; |
|
| 103 | } |
|
| 104 | ||
| 105 | return $res; |
|
| 106 | } |
|
| @@ 121-125 (lines=5) @@ | ||
| 118 | ['poster', 'sizeFile', (int)$this->_configs['gallerySize'] * 1024] // in bytes |
|
| 119 | ]; |
|
| 120 | ||
| 121 | foreach (App::$Properties->get('languages') as $lang) { |
|
| 122 | $r[] = ['title.' . $lang, 'length_max', 120, null, true, true]; |
|
| 123 | $r[] = ['keywords.' . $lang, 'length_max', 150]; |
|
| 124 | $r[] = ['description.' . $lang, 'length_max', 250]; |
|
| 125 | } |
|
| 126 | ||
| 127 | return $r; |
|
| 128 | } |
|