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