54 $xml .=
"\n</TextMap>";
59 function import($doc,
$tx)
75 $translations =
$text->Translations();
77 if(count($translations) > 0)
90 "Text Lookup" =>
"/admin/text_lookup_form",
91 "Translations" =>
"/admin/text_translations"
94 $qs = ($key) ?
"text_id=$key" :
"";
109 $mgr->upgrade($version);
static using()
Import the datamodels, views and manifest for the specified component(s).
static serialize($class, $constraint="")
Serializes the specified DataItems to XML.
registerHandler($component, $title, $handler)
Registers a serialization handler for a component.
static unserialize($class, $doc, $tx, $save=true)
Instantiates DataItems from the supplied XML document and stores them in the database.
static setDefaultValue($component, $name, $value, $field_type="String", $annotation="", $category="", $options="", $weight=0)
Sets the default value of the given component setting.
static registerSerializationHandler()
static upgradeComponent($version)
static registerVersionedContent()
TextLookupSerializationHandler()
static registerVersionedContent()