Esempio n. 1
0
 public static function isValidIdsFromAjaxSelectOrderableList($ids)
 {
     $reorderableList = new AjaxSelectReorderableList($ids, function () {
         return new PermissionGroup();
     }, function ($model) {
         return $model->getNameAndDescription();
     });
     return $reorderableList->isValid();
 }
Esempio n. 2
0
 public static function isValidIdsFromAjaxSelectOrderableList($ids)
 {
     $reorderableList = new AjaxSelectReorderableList($ids, function () {
         return new QualityDefinition();
     }, function ($model) {
         return $model->name;
     });
     return $reorderableList->isValid();
 }