4require_once 
"Services/AdvancedMetaData/classes/class.ilAdvancedMDFieldDefinition.php";
 
   39        if (is_numeric($max)) {
 
   40            $def->setMaxLength($max);
 
   60        if ($a_value !== 
null) {
 
   61            $a_value = (int) $a_value;
 
   63        $this->max_length = $a_value;
 
   83        $this->multi = (bool) $a_value;
 
  127            $res[
$lng->txt(
"md_adv_text_multi")] = 
$lng->txt(
"yes");
 
  148        $max->setMinValue(1);
 
  149        $max->setMaxValue(4000); 
 
  158            $max->setDisabled(
true);
 
  159            $multi->setDisabled(
true);
 
  188        if ($a_key == 
"max") {
 
  191        if ($a_key == 
"multi") {
 
  192            $this->
setMulti($a_value != 
"" ? $a_value : 
null);
 
  198        return $element->getText();
 
  203        $this->
getADT()->setText($a_cdata);
 
  208        switch ($a_ecs_type) {
 
  210                $value = implode(
',', (array) $a_value);
 
  214                $value = (int) $a_value;
 
  218                $value = (string) $a_value;
 
  223                    $value = $a_value->{
'get' . ucfirst($a_sub_id)}();
 
  229            $this->
getADT()->setText($value);
 
  244        $a_text->setMulti($this->isMulti(), 80, 6);
 
  254        return $a_adt_search->getADT()->getText();
 
  266        foreach ($a_records as $record) {
 
  267            if ($record[
"sub_type"] == 
"-") {
 
  269                $obj_ids[$record[
"obj_id"]] = $record;
 
  273        $sql = 
"SELECT obj_id,type" .
 
  274            " FROM object_data" .
 
  275            " WHERE " . 
$ilDB->in(
"obj_id", array_keys($obj_ids), 
"", 
"integer") .
 
  276            " AND " . 
$ilDB->in(
"type", $a_object_types, 
"", 
"text");
 
  277        $set = 
$ilDB->query($sql);
 
  279            $row[
"found"] = array();
 
  280            foreach ($obj_ids[
$row[
"obj_id"]] as $field => $value) {
 
  281                if (substr($field, 0, 5) == 
"found") {
 
  282                    $row[
"found"][$field] = $value;
 
  305        include_once(
'Services/ADT/classes/ActiveRecord/class.ilADTActiveRecordByType.php');
 
  313            if (
sizeof($objects)) {
 
  314                return $this->parseSearchObjects($objects, $a_object_types);
 
An exception for terminatinating execution or to throw for unit testing.
static find($a_table, $a_type, $a_field_id, $a_condition, $a_additional_fields=null)
Find entries.
static getInstance()
Get singleton.
ADT search bridge base class.
getSQLCondition($a_element_id)
Get SQL condition for current value(s)
importValueFromXML($a_cdata)
Import value from xml.
parseSearchObjects(array $a_records, array $a_object_types)
Add object-data needed for global search to AMD search results.
searchObjects(ilADTSearchBridge $a_adt_search, ilQueryParser $a_parser, array $a_object_types, $a_locate, $a_search_type)
Search.
importXMLProperty($a_key, $a_value)
Import property from XML.
importFieldDefinition(array $a_def)
Import (type-specific) field definition from DB.
prepareElementForEditor(ilADTFormBridge $a_text)
Prepare editor form elements.
initADTDefinition()
Init adt instance.
getFieldDefinition()
Get (type-specific) field definition.
setMaxLength($a_value)
Set max length.
addCustomFieldToDefinitionForm(ilPropertyFormGUI $a_form, $a_disabled=false)
Add input elements to definition form.
importFromECS($a_ecs_type, $a_value, $a_sub_id)
Import meta data from ECS.
importCustomDefinitionFormPostValues(ilPropertyFormGUI $a_form)
Import custom post values from definition form.
addPropertiesToXML(ilXmlWriter $a_writer)
Add (type-specific) properties to xml export.
getFieldDefinitionForTableGUI()
Parse properties for table gui.
setMulti($a_value)
Set multi-line.
getValueForXML(ilADT $element)
Parse ADT value for xml (export)
getSearchQueryParserValue(ilADTSearchBridge $a_adt_search)
Get value for search query parser.
getMaxLength()
Get max length.
AMD field abstract base class.
getADT()
Get ADT instance.
Representation of ECS EContent Time Place.
getQuotedWords($with_quotation=false)
xmlElement($tag, $attrs=null, $data=null, $encode=true, $escape=true)
Writes a basic element (no children, just textual content)
foreach($_POST as $key=> $value) $res