Bitrix API

FolderDeleted extends FolderTree

Disk storage volume measurement class.

Table of Contents

Constants

ATTACHED_OBJECT  = 'attached_object'
CRM_OBJECT  = 'crm_object'
DISK_FILE  = 'disk_file'
ERROR_LOCK_TIMEOUT  = 'LOCK_TIMEOUT'
ERROR_MEASURE_UNAVAILABLE  = 'DISK_VOLUME_MEASURE_UNAVAILABLE'
EXTERNAL_LINK  = 'external_link'
PREVIEW_FILE  = 'preview_file'
SHARING_OBJECT  = 'sharing_object'
UNNECESSARY_VERSION  = 'unnecessary_version'

Properties

$clearConstraintList  : array<string|int, string>
$clearFolderConstraintList  : array<string|int, string>
$deleteConstraintList  : array<string|int, string>
$indicatorTypeList  : array<string|int, mixed>

Methods

addError()  : void
Upends stack of errors.
addFilter()  : static
Sets filter parameters.
addGroupBy()  : static
Sets group by field.
addSelect()  : static
Sets select field.
className()  : string
clearErrors()  : void
Empty stack of errors.
getCorrespondingFileList()  : Result
Loads file list corresponding to indicator's filter.
getCorrespondingFolderList()  : Result
Loads folder list corresponding to indicator's filter.
getCorrespondingUnnecessaryVersionList()  : Result
Loads file list corresponding to indicator's filter.
getDiskCount()  : float
Returns total amount of objects on disk.
getDiskSize()  : float
Returns total volume size of objects on disk.
getErrorByCode()  : Error|null
Getting once error with the necessary code.
getErrors()  : array<string|int, Error>
Getting array of errors.
getErrorsByCode()  : array<string|int, Error>
Getting array of errors with the necessary code.
getFilter()  : array<string|int, mixed>
Gets filter parameters.
getFilterId()  : int
Gets stored filter id.
getFilterValue()  : mixed|null
Gets filter parameter by key.
getFragment()  : Fragment
Finds entity object by filter.
getGroupBy()  : array<string|int, mixed>
Gets group by fields.
getIndicator()  : IVolumeIndicator
Constructs and returns indicator type object.
getIndicatorId()  : string
getLimit()  : int
Gets limit result rows count.
getMeasurementResult()  : Result
Returns calculation result set.
getMeasureStages()  : array<string|int, string>
Returns measure process stages list.
getOffset()  : int
Gets offset in result.
getOrder()  : array<string|int, mixed>
Gets sort order parameters.
getOwner()  : int|null
Gets owner id.
getParents()  : array<string|int, string>
getPreviewCount()  : float
Returns total amount of preview files.
getPreviewSize()  : float
Returns total volume size of preview files.
getSelect()  : array<string|int, mixed>
Gets select fields.
getStage()  : string|null
Gets current stage id.
getTitle()  : string|null
Returns title of the entity object.
getTotalAttached()  : float
Returns total amount of attached objects selecting by filter.
getTotalCount()  : float
Returns total amount of objects selecting by filter.
getTotalLink()  : float
Returns total amount of external links to objects selecting by filter.
getTotalSharing()  : float
Returns total number sharing of objects selecting by filter.
getTotalSize()  : float
Returns total volume size of objects selecting by filter.
getTotalVersion()  : float
Returns total amount of objects selecting by filter.
getUnnecessaryVersionCount()  : float
Returns total count of files without links and attached object.
getUnnecessaryVersionSize()  : int
Returns total amount of files without links and attached object.
getUpdateTime()  : DateTime|null
Returns last update time of the entity object.
getUrl()  : string|null
hasErrors()  : bool
Tells true if error have happened.
isAllowDeleteFolder()  : bool
Check ability to drop folder.
isResultAvailable()  : bool
Tells true if total result is available.
listClearConstraint()  : array<string|int, string>
Returns clearance constraint list.
listClearFolderConstraint()  : array<string|int, string>
Returns clearance constraint list.
listDeleteConstraint()  : array<string|int, string>
Returns delete constraint list.
listIndicator()  : array<string|int, mixed>
Returns indicator list available in library.
loadTotals()  : array<string|int, float>
Returns total amount of objects selecting by filter.
measure()  : static
Runs measure test to get volumes of selecting objects.
prepareData()  : static
Preforms data preparation.
purify()  : static
Deletes objects selecting by filter.
recalculatePercent()  : static
Recalculates percent from total file size per row selected by filter.
resetMeasurementResult()  : static
Unset calculated values.
restoreFilter()  : static
Restores filter state from saved $measurement result.
setFilterId()  : static
Sets filter id.
setLimit()  : static
Sets limit result rows count.
setOffset()  : static
Sets offset in result.
setOrder()  : static
Sets sort order parameters.
setOwner()  : static
Sets owner id.
setStage()  : static
Sets current stage id.
unsetFilter()  : static
Clear filter parameters.

Constants

ATTACHED_OBJECT

public mixed ATTACHED_OBJECT = 'attached_object'

CRM_OBJECT

public mixed CRM_OBJECT = 'crm_object'

DISK_FILE

public mixed DISK_FILE = 'disk_file'

ERROR_LOCK_TIMEOUT

public mixed ERROR_LOCK_TIMEOUT = 'LOCK_TIMEOUT'

ERROR_MEASURE_UNAVAILABLE

public mixed ERROR_MEASURE_UNAVAILABLE = 'DISK_VOLUME_MEASURE_UNAVAILABLE'
public mixed EXTERNAL_LINK = 'external_link'

PREVIEW_FILE

public mixed PREVIEW_FILE = 'preview_file'

SHARING_OBJECT

public mixed SHARING_OBJECT = 'sharing_object'

UNNECESSARY_VERSION

public mixed UNNECESSARY_VERSION = 'unnecessary_version'

Properties

$clearConstraintList

public static array<string|int, string> $clearConstraintList = []

Clear constraint list.

$clearFolderConstraintList

public static array<string|int, string> $clearFolderConstraintList = []

Clear folder constraint list.

$deleteConstraintList

public static array<string|int, string> $deleteConstraintList = []

Delete constraint list.

$indicatorTypeList

public static array<string|int, mixed> $indicatorTypeList = []

Indicator list available in library.

Methods

addError()

Upends stack of errors.

public addError(Error $error) : void
Parameters
$error : Error

Error message object.

addFilter()

Sets filter parameters.

public addFilter(string $key, string|array<string|int, string> $value) : static
Parameters
$key : string

Parameter name to filter.

$value : string|array<string|int, string>

Parameter value.

Return values
static

addGroupBy()

Sets group by field.

public addGroupBy(string $alias, string $statement) : static
Parameters
$alias : string

Parameter alias.

$statement : string

Parameter value.

Tags
throws
ArgumentNullException
Return values
static

addSelect()

Sets select field.

public addSelect(string $alias, string $statement) : static
Parameters
$alias : string

Parameter alias.

$statement : string

Parameter value.

Tags
throws
ArgumentNullException
Return values
static

className()

public final static className() : string
Return values
string

the fully qualified name of this class.

clearErrors()

Empty stack of errors.

public clearErrors() : void

getCorrespondingFileList()

Loads file list corresponding to indicator's filter.

public getCorrespondingFileList([array<string|int, mixed> $additionalFilter = [] ]) : Result
Parameters
$additionalFilter : array<string|int, mixed> = []

Additional parameters to filter file list.

Return values
Result

getCorrespondingFolderList()

Loads folder list corresponding to indicator's filter.

public getCorrespondingFolderList([array<string|int, mixed> $additionalFilter = [] ]) : Result
Parameters
$additionalFilter : array<string|int, mixed> = []

Additional parameters to filter file list.

Return values
Result

getCorrespondingUnnecessaryVersionList()

Loads file list corresponding to indicator's filter.

public getCorrespondingUnnecessaryVersionList([array<string|int, mixed> $additionalFilter = [] ]) : Result
Parameters
$additionalFilter : array<string|int, mixed> = []

Additional parameters to filter file list.

Return values
Result

getDiskCount()

Returns total amount of objects on disk.

public getDiskCount() : float
Return values
float

getDiskSize()

Returns total volume size of objects on disk.

public getDiskSize() : float
Return values
float

getErrorByCode()

Getting once error with the necessary code.

public getErrorByCode(string $code) : Error|null
Parameters
$code : string

Code of error.

Return values
Error|null

getErrors()

Getting array of errors.

public getErrors() : array<string|int, Error>
Return values
array<string|int, Error>

getErrorsByCode()

Getting array of errors with the necessary code.

public getErrorsByCode(string $code) : array<string|int, Error>
Parameters
$code : string

Code of error.

Return values
array<string|int, Error>

getFilter()

Gets filter parameters.

public getFilter([array<string|int, string> $defaultFilter = [] ][, Base $entity = null ]) : array<string|int, mixed>
Parameters
$defaultFilter : array<string|int, string> = []

Default filter set.

$entity : Base = null

Leave only fields for this entity.

Return values
array<string|int, mixed>

getFilterId()

Gets stored filter id.

public getFilterId() : int
Return values
int

getFilterValue()

Gets filter parameter by key.

public getFilterValue(string $key[, string $acceptedListModificators = '=<>!@%' ]) : mixed|null
Parameters
$key : string

Parameter name to filter.

$acceptedListModificators : string = '=<>!@%'

List of accepted filter modificator. Defaults are '=<>!@%'.

Return values
mixed|null

getFragment()

Finds entity object by filter.

public static getFragment(array<string|int, string> $filter) : Fragment
Parameters
$filter : array<string|int, string>

Array filter set to find entity object.

Return values
Fragment

getGroupBy()

Gets group by fields.

public getGroupBy() : array<string|int, mixed>
Return values
array<string|int, mixed>

getIndicator()

Constructs and returns indicator type object.

public final static getIndicator(string $indicatorTypeId) : IVolumeIndicator
Parameters
$indicatorTypeId : string

Indicator class name.

Tags
throws
ObjectException
throws
ArgumentNullException
Return values
IVolumeIndicator

getIndicatorId()

public final static getIndicatorId() : string
Return values
string

The short indicator name of this class.

getLimit()

Gets limit result rows count.

public getLimit() : int
Return values
int

getMeasurementResult()

Returns calculation result set.

public getMeasurementResult([array<string|int, mixed> $collectedData = [] ]) : Result
Parameters
$collectedData : array<string|int, mixed> = []

List types of collected data to return.

Return values
Result

getMeasureStages()

Returns measure process stages list.

public getMeasureStages() : array<string|int, string>

List types data to collect: ATTACHED_OBJECT, SHARING_OBJECT, EXTERNAL_LINK, UNNECESSARY_VERSION or PREVIEW_FILE.

Return values
array<string|int, string>

getOffset()

Gets offset in result.

public getOffset() : int
Return values
int

getOrder()

Gets sort order parameters.

public getOrder([array<string|int, string> $defaultOrder = [] ]) : array<string|int, mixed>
Parameters
$defaultOrder : array<string|int, string> = []

Default order set.

Return values
array<string|int, mixed>

getOwner()

Gets owner id.

public getOwner() : int|null
Return values
int|null

getParents()

public static getParents(Fragment $fragment) : array<string|int, string>
Parameters
$fragment : Fragment

Folder entity object.

Tags
throws
ArgumentTypeException
Return values
array<string|int, string>

getPreviewCount()

Returns total amount of preview files.

public getPreviewCount() : float
Return values
float

getPreviewSize()

Returns total volume size of preview files.

public getPreviewSize() : float
Return values
float

getSelect()

Gets select fields.

public getSelect() : array<string|int, mixed>
Return values
array<string|int, mixed>

getStage()

Gets current stage id.

public getStage() : string|null
Return values
string|null

getTitle()

Returns title of the entity object.

public static getTitle(Fragment $fragment) : string|null
Parameters
$fragment : Fragment

Folder entity object.

Tags
throws
ArgumentTypeException
Return values
string|null

getTotalAttached()

Returns total amount of attached objects selecting by filter.

public getTotalAttached() : float
Return values
float

getTotalCount()

Returns total amount of objects selecting by filter.

public getTotalCount() : float
Return values
float

Returns total amount of external links to objects selecting by filter.

public getTotalLink() : float
Return values
float

getTotalSharing()

Returns total number sharing of objects selecting by filter.

public getTotalSharing() : float
Return values
float

getTotalSize()

Returns total volume size of objects selecting by filter.

public getTotalSize() : float
Return values
float

getTotalVersion()

Returns total amount of objects selecting by filter.

public getTotalVersion() : float
Return values
float

getUnnecessaryVersionCount()

Returns total count of files without links and attached object.

public getUnnecessaryVersionCount() : float
Return values
float

getUnnecessaryVersionSize()

Returns total amount of files without links and attached object.

public getUnnecessaryVersionSize() : int
Return values
int

getUpdateTime()

Returns last update time of the entity object.

public static getUpdateTime(Fragment $fragment) : DateTime|null
Parameters
$fragment : Fragment

Entity object.

Tags
throws
ArgumentTypeException
Return values
DateTime|null

getUrl()

public static getUrl(Fragment $fragment) : string|null
Parameters
$fragment : Fragment

Folder entity object.

Tags
throws
ArgumentTypeException
Return values
string|null

hasErrors()

Tells true if error have happened.

public hasErrors() : bool
Return values
bool

isAllowDeleteFolder()

Check ability to drop folder.

public isAllowDeleteFolder(Folder $folder) : bool
Parameters
$folder : Folder

Folder to drop.

Return values
bool

isResultAvailable()

Tells true if total result is available.

public isResultAvailable() : bool
Return values
bool

listClearConstraint()

Returns clearance constraint list.

public final static listClearConstraint() : array<string|int, string>
Return values
array<string|int, string>

listClearFolderConstraint()

Returns clearance constraint list.

public final static listClearFolderConstraint() : array<string|int, string>
Return values
array<string|int, string>

listDeleteConstraint()

Returns delete constraint list.

public final static listDeleteConstraint() : array<string|int, string>
Return values
array<string|int, string>

listIndicator()

Returns indicator list available in library.

public final static listIndicator() : array<string|int, mixed>
Return values
array<string|int, mixed>

loadTotals()

Returns total amount of objects selecting by filter.

public loadTotals() : array<string|int, float>
Return values
array<string|int, float>

measure()

Runs measure test to get volumes of selecting objects.

public measure([array<string|int, mixed> $collectData = [self::DISK_FILE, self::UNNECESSARY_VERSION] ]) : static
Parameters
$collectData : array<string|int, mixed> = [self::DISK_FILE, self::UNNECESSARY_VERSION]

List types data to collect: ATTACHED_OBJECT, SHARING_OBJECT, EXTERNAL_LINK, UNNECESSARY_VERSION.

Tags
throws
ArgumentException
throws
SystemException
Return values
static

prepareData()

Preforms data preparation.

public prepareData() : static
Tags
throws
ArgumentOutOfRangeException
throws
ArgumentException
Return values
static

purify()

Deletes objects selecting by filter.

public purify() : static
Return values
static

recalculatePercent()

Recalculates percent from total file size per row selected by filter.

public recalculatePercent([string|IVolumeIndicator $totalSizeIndicator = 'BitrixDiskVolumeStorageStorage' ][, string|IVolumeIndicator $excludeSizeIndicator = null ]) : static
Parameters
$totalSizeIndicator : string|IVolumeIndicator = 'BitrixDiskVolumeStorageStorage'

Use this indicator as total volume.

$excludeSizeIndicator : string|IVolumeIndicator = null

Exclude indicator's volume from total volume.

Tags
throws
ArgumentException
Return values
static

resetMeasurementResult()

Unset calculated values.

public resetMeasurementResult() : static
Return values
static

restoreFilter()

Restores filter state from saved $measurement result.

public restoreFilter(int|array<string|int, mixed> $measurementResult) : static
Parameters
$measurementResult : int|array<string|int, mixed>

The id of result row or row from table.

Return values
static

setFilterId()

Sets filter id.

public setFilterId(int $filterId) : static
Parameters
$filterId : int

Stored filter id.

Return values
static

setLimit()

Sets limit result rows count.

public setLimit(int $limit) : static
Parameters
$limit : int

Limit value.

Return values
static

setOffset()

Sets offset in result.

public setOffset(int $offset) : static
Parameters
$offset : int

Offset value.

Return values
static

setOrder()

Sets sort order parameters.

public setOrder(array<string|int, string> $order) : static
Parameters
$order : array<string|int, string>

Sort order parameters and directions.

Return values
static

setOwner()

Sets owner id.

public setOwner(int $ownerId) : static
Parameters
$ownerId : int

User id.

Return values
static

setStage()

Sets current stage id.

public setStage(string|null $stageId) : static
Parameters
$stageId : string|null

Stage id.

Return values
static

unsetFilter()

Clear filter parameters.

public unsetFilter([string $key = '' ]) : static
Parameters
$key : string = ''

Parameter name to unset.

Return values
static

        
On this page

Search results