Documentation

SceneAttachment
in package
Uses UserAssignable

A SceneAttachment is a registered Attachment class to keep track of (a) generally all available attachments, and (b) which scene contains which attachment.

Tags
Entity
Table

(name="scene_attachments")

Table of Contents

$class  : string
$title  : string
$userAssignable  : bool
$scenes  : Collection|null
__construct()  : mixed
SceneAttachment constructor.
getClass()  : string
getScenes()  : Collection
getTitle()  : string
isUserAssignable()  : bool
setUserAssignable()  : mixed
Changes whether the template should be able to get manually assigned to a template or not.

Properties

$class

protected string $class
Tags
Id
Column

(type="string", length=36, unique=True, name="class", options={"fixed"=true})

$title

protected string $title
Tags
Column

(type="string", length=255)

$userAssignable

protected bool $userAssignable = true
Tags
Column

(type="boolean", options={"default"=true})

$scenes

private Collection|null $scenes
Tags
ManyToMany

(targetEntity="Scene", mappedBy="attachments")

Methods

__construct()

SceneAttachment constructor.

public __construct(string $class, string $title[, bool $userAssignable = true ]) : mixed
Parameters
$class : string

A class inheriting from AttachmentInterface.

$title : string
$userAssignable : bool = true
Tags
throws
ArgumentException

if $class does not implement AttachmentInterface

Return values
mixed

getScenes()

public getScenes() : Collection
Return values
Collection

isUserAssignable()

public isUserAssignable() : bool
Return values
bool

setUserAssignable()

Changes whether the template should be able to get manually assigned to a template or not.

public setUserAssignable([bool $flag = true ]) : mixed
Parameters
$flag : bool = true
Return values
mixed

Search results