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