ItemAttributes
Table of Contents
Methods
- __toString() : string
- addAction() : $this
- buildAsUnknownType() : static
- buildByFileData() : static
- buildByFileId() : static
- clearActions() : self
- getActions() : array<string|int, mixed>
- getAttribute() : mixed|null
- getAttributes() : array<string|int, mixed>
- getExtension() : string|null
- getGroupBy() : string|null
- getTypeClass() : mixed
- getViewerType() : mixed|null
- issetAttribute() : bool
- setAttribute() : $this
- setExtension() : ItemAttributes
- setGroupBy() : $this
- setTitle() : $this
- setTypeClass() : mixed
- setViewerType() : self
- toDataSet() : array<string|int, mixed>
- Convert structure to array which we can use in js (node.dataset).
- toString() : string
- tryBuildByFileData() : mixed
- tryBuildByFileId() : mixed
- unsetAttribute() : $this
- unsetGroupBy() : $this
Methods
__toString()
public
__toString() : string
Return values
stringaddAction()
public
addAction(array<string|int, mixed> $action) : $this
Parameters
- $action : array<string|int, mixed>
Return values
$thisbuildAsUnknownType()
public
static buildAsUnknownType(mixed $sourceUri) : static
Parameters
- $sourceUri : mixed
Return values
staticbuildByFileData()
public
static buildByFileData(array<string|int, mixed> $fileData, mixed $sourceUri) : static
Parameters
- $fileData : array<string|int, mixed>
- $sourceUri : mixed
Tags
Return values
staticbuildByFileId()
public
static buildByFileId(mixed $fileId, mixed $sourceUri) : static
Parameters
- $fileId : mixed
- $sourceUri : mixed
Tags
Return values
staticclearActions()
public
clearActions() : self
Return values
selfgetActions()
public
getActions() : array<string|int, mixed>
Return values
array<string|int, mixed>getAttribute()
public
getAttribute(mixed $name) : mixed|null
Parameters
- $name : mixed
Return values
mixed|nullgetAttributes()
public
getAttributes() : array<string|int, mixed>
Return values
array<string|int, mixed>getExtension()
public
getExtension() : string|null
Return values
string|nullgetGroupBy()
public
getGroupBy() : string|null
Return values
string|nullgetTypeClass()
public
getTypeClass() : mixed
getViewerType()
public
getViewerType() : mixed|null
Return values
mixed|nullissetAttribute()
public
issetAttribute(mixed $name) : bool
Parameters
- $name : mixed
Return values
boolsetAttribute()
public
setAttribute(mixed $name[, mixed $value = null ]) : $this
Parameters
- $name : mixed
- $value : mixed = null
Return values
$thissetExtension()
public
setExtension(string $extension) : ItemAttributes
Parameters
- $extension : string
Return values
ItemAttributessetGroupBy()
public
setGroupBy(mixed $id) : $this
Parameters
- $id : mixed
Return values
$thissetTitle()
public
setTitle(mixed $title) : $this
Parameters
- $title : mixed
Return values
$thissetTypeClass()
public
setTypeClass(string $class) : mixed
Parameters
- $class : string
setViewerType()
public
setViewerType(string $type) : self
Parameters
- $type : string
Return values
selftoDataSet()
Convert structure to array which we can use in js (node.dataset).
public
toDataSet() : array<string|int, mixed>
Return values
array<string|int, mixed>toString()
public
toString() : string
Return values
stringtryBuildByFileData()
public
static tryBuildByFileData(array<string|int, mixed> $fileData, mixed $sourceUri) : mixed
Parameters
- $fileData : array<string|int, mixed>
- $sourceUri : mixed
tryBuildByFileId()
public
static tryBuildByFileId(mixed $fileId, mixed $sourceUri) : mixed
Parameters
- $fileId : mixed
- $sourceUri : mixed
unsetAttribute()
public
unsetAttribute(mixed $name) : $this
Parameters
- $name : mixed
Return values
$thisunsetGroupBy()
public
unsetGroupBy() : $this