18 return self::TYPE_INTERNAL_LINK;
39 if ($element->getTargetRefId() && strlen(
$type)) {
40 return 'il_' . IL_INST_ID .
'_' .
$type .
'_' . $element->getTargetRefId();
54 (strcmp($parsed_import_id[
'inst_id'], IL_INST_ID) == 0) &&
57 $this->
getADT()->setTargetRefId($parsed_import_id[
'id']);
77 if (
sizeof($objects)) {
92 $query =
'select ref_id from object_reference obr join object_data obd on obr.obj_id = obd.obj_id ' .
93 'where ' . $db->like(
'title',
'text', $a_value .
'%');
97 $ref_ids[] =
$row->ref_id;
parseSearchObjects(array $a_records, array $a_object_types)
Add object-data needed for global search to AMD search results.
getLuceneSearchString($a_value)
translate lucene search string
static _exists($a_id, $a_reference=false, $a_type=null)
checks if an object exists in object_data
AMD field abstract base class.
getADT()
Get ADT instance.
static parseImportId($a_import_id)
Parse an ilias import id Typically of type il_[IL_INST_ID]_[OBJ_TYPE]_[OBJ_ID] returns array( 'orig' ...
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
static getInstance()
Get singleton.
initADTDefinition()
Init ADT definition.
searchObjects(ilADTSearchBridge $a_adt_search, ilQueryParser $a_parser, array $a_object_types, $a_locate, $a_search_type)
Search.
static find($a_table, $a_type, $a_field_id, $a_condition, $a_additional_fields=null)
Find entries.
foreach($_POST as $key=> $value) $res
Create styles array
The data for the language used.
static _lookupType($a_id, $a_reference=false)
lookup object type
ADT search bridge base class.
importValueFromXML($a_cdata)
Import value from xml.
getValueForXML(\ilADT $element)
Get value for XML.
getSQLCondition($a_element_id)
Get SQL condition for current value(s)
getFieldId()
Get field_id.