All Data Structures Functions Variables Pages
Static Public Member Functions | Data Fields | Static Protected Member Functions
MassEditInsufficientPermissionSkipSavingUtil 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 = 'MassEditSkipInformation'
 

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::WRITE on the model.

Definition at line 43 of file MassEditInsufficientPermissionSkipSavingUtil.php.

Member Function Documentation

static clear (   $modelClassName)
static

Resets storage cache.

Definition at line 50 of file MassEditInsufficientPermissionSkipSavingUtil.php.

static getAll (   $modelClassName)
static

Gets all storage cache data.

Returns
array of model id/name pairings.

Definition at line 59 of file MassEditInsufficientPermissionSkipSavingUtil.php.

static getCount (   $modelClassName)
static

Gets count of storage data model id/name pairings

Definition at line 67 of file MassEditInsufficientPermissionSkipSavingUtil.php.

static setByModelIdAndName (   $modelClassName,
  $modelId,
  $modelName 
)
static

Set skip data by model id and name.

Definition at line 75 of file MassEditInsufficientPermissionSkipSavingUtil.php.

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

Definition at line 92 of file MassEditInsufficientPermissionSkipSavingUtil.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 MassEditInsufficientPermissionSkipSavingUtil.php.


The documentation for this class was generated from the following file:
Generated on Wed Apr 1 2020 07:11:11