Section
class Section
This class allows the storage and retrieval of the attributes of a section.
The section is a subdivision of a chapter. It is in the sections that the different texts of a block of information are inscribed. The text of a section can be annotated.
Properties
private Chapter | $chapter | ||
private int | $id | ||
private string | $name | ||
private string | $label | ||
private RichText|null | $content | ||
private RichText|null | $annotations | ||
private bool | $displayable |
Methods
Returns the Chapter object that contains this section.
Returns the ID of this section
Sets the ID of this section
Returns the name of this section
Sets the name of this section
Returns the label of this section
Sets the label of this section
Returns the textual content of this section
Returns the annotations on the text of this section
Returns the displayable attribute of this Section object
Returns the displayable attribute of this Section object
Determines whether this section can be displayed or not
Details
at line 106
void
__construct(Chapter $chapter, int $id)
Constructor of class Section
at line 118
Chapter
getChapter()
Returns the Chapter object that contains this section.
at line 129
int
getId()
Returns the ID of this section
at line 141
void
setId(int $id)
Sets the ID of this section
at line 152
string
getName()
Returns the name of this section
at line 164
void
setName(string $name)
Sets the name of this section
at line 175
string
getLabel()
Returns the label of this section
at line 187
void
setLabel(string $label)
Sets the label of this section
at line 198
RichText|null
getContent()
Returns the textual content of this section
at line 210
void
setContent(RichText $content)
Sets the textual content of this section
at line 221
RichText|null
getAnnotations()
Returns the annotations on the text of this section
at line 233
void
setAnnotations(RichText $annotations)
Sets the annotations on the text of this section
at line 244
bool
isDisplayable()
Returns the displayable attribute of this Section object
at line 255
bool
getDisplayable()
Returns the displayable attribute of this Section object
at line 267
void
setDisplayable(bool $displayable)
Determines whether this section can be displayed or not