ElementText
Package: Record
- class ElementText
extends Omeka_Record_AbstractRecord
An element text and its metadata.
- property ElementText::$record_id
int
ID of the associated record.
- property ElementText::$record_type
string
Type of the associated record.
- property ElementText::$element_id
int
ID of this text’s Element.
- property ElementText::$html
int
Whether this text is HTML.
- property ElementText::$text
string
The text itself.
- ElementText::_validate()
Validate the element text prior to saving.
Test for a positive record_id and element_id, and a non-empty record_type.
- ElementText::__toString()
Use the actual text when printing an ElementText as a string.
- Returns:
string
- ElementText::setText($text)
Set the text.
- Parameters:
$text (
string
) –
- ElementText::getText()
Get the text.
- Returns:
string
- ElementText::isHtml()
Get whether this text is HTML.
- Returns:
bool