public static function update($request, $match)
    {
        $model = Pluf_Shortcuts_GetObjectOr404('User_Role', $match['id']);
        $form = Pluf_Shortcuts_GetFormForUpdateModel($model, $request->REQUEST, array());
        $model = $form->save();
        $request->user->setMessage(sprintf(__('Role data has been updated.'), (string) $model));
        return new Pluf_HTTP_Response_Json($model);
    }
public static function update($request, $match)
    {
        $model = Pluf_Shortcuts_GetObjectOr404('User_Role', $match['id']);
        $form = Pluf_Shortcuts_GetFormForUpdateModel($model, $request->REQUEST, array());
        $model = $form->save();
        $request->user->setMessage(sprintf(__('Role data has been updated.'), (string) $model));
        return new Pluf_HTTP_Response_Json($model);
    }
public static function update ( $ request , $ match ) { $ model = Pluf_Shortcuts_GetObjectOr404 ( 'User_Role' , $ match [ 'id' ] ) ; $ form = Pluf_Shortcuts_GetFormForUpdateModel ( $ model , $ request -> REQUEST , array ( ) ) ; $ model = $ form -> save ( ) ; $ request -> user -> setMessage ( sprintf ( __ ( 'Role data has been updated.' ) , ( string ) $ model ) ) ; return new Pluf_HTTP_Response_Json ( $ model ) ; }
Updates information of a role.

@param unknown_type $request
@param unknown_type $match
Updates information of a role .