4 require_once
"Services/AdvancedMetaData/classes/class.ilAdvancedMDFieldDefinition.php";
26 return self::TYPE_TEXT;
41 $def->setMaxLength($max);
63 $a_value = (int)$a_value;
65 $this->max_length = $a_value;
85 $this->multi = (bool)$a_value;
129 $res[$lng->txt(
"md_adv_text_multi")] = $lng->txt(
"yes");
148 $max->setMinValue(1);
149 $max->setMaxValue(4000);
159 $max->setDisabled(
true);
160 $multi->setDisabled(
true);
193 if($a_key ==
"multi")
195 $this->
setMulti($a_value !=
"" ? $a_value : null);
201 return $element->getText();
206 $this->
getADT()->setText($a_cdata);
214 $value = implode(
',', (
array)$a_value);
218 $value = (int)$a_value;
222 $value = (
string)$a_value;
228 $value = $a_value->{
'get'.ucfirst($a_sub_id)}();
235 $this->
getADT()->setText($value);
250 $a_text->setMulti($this->
isMulti(), 80, 6);
260 return $a_adt_search->getADT()->getText();
270 foreach($a_records as $record)
272 if($record[
"sub_type"] ==
"-")
275 $obj_ids[$record[
"obj_id"]] = $record;
279 $sql =
"SELECT obj_id,type".
281 " WHERE ".$ilDB->in(
"obj_id", array_keys($obj_ids),
"",
"integer").
282 " AND ".$ilDB->in(
"type", $a_object_types,
"",
"text");
283 $set = $ilDB->query($sql);
284 while(
$row = $ilDB->fetchAssoc($set))
287 foreach($obj_ids[
$row[
"obj_id"]] as $field => $value)
289 if(substr($field, 0, 5) ==
"found")
291 $row[
"found"][$field] = $value;
314 include_once(
'Services/ADT/classes/ActiveRecord/class.ilADTActiveRecordByType.php');
getValueForXML(ilADT $element)
Representation of ECS EContent Time Place.
getQuotedWords($with_quotation=false)
setMulti($a_value)
Set multi-line.
AMD field abstract base class.
getADT()
Get ADT instance.
addPropertiesToXML(ilXmlWriter $a_writer)
importCustomDefinitionFormPostValues(ilPropertyFormGUI $a_form)
Import custom post values from definition form.
searchObjects(ilADTSearchBridge $a_adt_search, ilQueryParser $a_parser, array $a_object_types, $a_locate, $a_search_type)
Search.
xmlElement($tag, $attrs=NULL, $data=Null, $encode=TRUE, $escape=TRUE)
Writes a basic element (no children, just textual content)
Add rich text string
The name of the decorator.
static getInstance()
Get singleton.
getMaxLength()
Get max length.
static find($a_table, $a_type, $a_field_id, $a_condition, $a_additional_fields=null)
Find entries.
getSearchQueryParserValue(ilADTSearchBridge $a_adt_search)
importValueFromXML($a_cdata)
Create styles array
The data for the language used.
importXMLProperty($a_key, $a_value)
importFieldDefinition(array $a_def)
addCustomFieldToDefinitionForm(ilPropertyFormGUI $a_form, $a_disabled=false)
Add input elements to definition form.
ADT search bridge base class.
importFromECS($a_ecs_type, $a_value, $a_sub_id)
parseSearchObjects(array $a_records, array $a_object_types)
getFieldDefinitionForTableGUI()
getSQLCondition($a_element_id)
Get SQL condition for current value(s)
getFieldId()
Get field_id.
setMaxLength($a_value)
Set max length.
prepareElementForEditor(ilADTFormBridge $a_text)