MassDeleteInsufficientPermissionSkipSavingUtil Class Reference

Static Public Member Functions

static clear ($modelClassName)
static getAll ($modelClassName)
static getCount ($modelClassName)
static setByModelIdAndName ($modelClassName, $modelId, $modelName)
static getSkipCountMessageContentByModelClassName ($skipCount, $modelClassName)
static resolveSuccessfulCountAgainstSkipCount ($totalCount, $skipCount)

Data Fields

const STORAGE_ID = 'MassDeleteSkipInformation'

Static Protected Member Functions

static getCacheId ($modelClassName)

Detailed Description

Helper class for mass edit. Allows temporary storage of skipped record information during a mass edit action that failed because the current user does not have permission::DELETE on the model.

Definition at line 43 of file MassDeleteInsufficientPermissionSkipSavingUtil.php.


Member Function Documentation

static clear ( modelClassName  )  [static]

Resets storage cache.

Definition at line 50 of file MassDeleteInsufficientPermissionSkipSavingUtil.php.

static getAll ( modelClassName  )  [static]

Gets all storage cache data.

Returns:
array of model id/name pairings.

Definition at line 59 of file MassDeleteInsufficientPermissionSkipSavingUtil.php.

static getCount ( modelClassName  )  [static]

Gets count of storage data model id/name pairings

Definition at line 67 of file MassDeleteInsufficientPermissionSkipSavingUtil.php.

static setByModelIdAndName ( modelClassName,
modelId,
modelName 
) [static]

Set skip data by model id and name.

Definition at line 75 of file MassDeleteInsufficientPermissionSkipSavingUtil.php.

static getSkipCountMessageContentByModelClassName ( skipCount,
modelClassName 
) [static]
Parameters:
int $skipCount
string $modelClassName
Returns:
string
Exceptions:
NotSupportedException 

Definition at line 92 of file MassDeleteInsufficientPermissionSkipSavingUtil.php.

static resolveSuccessfulCountAgainstSkipCount ( totalCount,
skipCount 
) [static]

Resolve the successful count by taking the skip count into consideration. If the total count was 10, but 6 were skipped, then the successful count returned is 4.

Returns:
integer - successful count.

Definition at line 108 of file MassDeleteInsufficientPermissionSkipSavingUtil.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Sat Sep 23 07:10:26 2017