ILIAS
Release_5_0_x_branch Revision 61816
|
AMD field type text. More...
Public Member Functions | |
getType () | |
Get type. | |
setMaxLength ($a_value) | |
Set max length. | |
getMaxLength () | |
Get max length. | |
setMulti ($a_value) | |
Set multi-line. | |
isMulti () | |
Is multi-line? | |
getFieldDefinitionForTableGUI () | |
Parse properties for table gui. | |
addCustomFieldToDefinitionForm (ilPropertyFormGUI $a_form, $a_disabled=false) | |
Add input elements to definition form. | |
importCustomDefinitionFormPostValues (ilPropertyFormGUI $a_form) | |
Import custom post values from definition form. | |
importXMLProperty ($a_key, $a_value) | |
Import property from XML. | |
getValueForXML (ilADT $element) | |
Parse ADT value for xml (export) | |
importValueFromXML ($a_cdata) | |
Import value from xml. | |
importFromECS ($a_ecs_type, $a_value, $a_sub_id) | |
Import meta data from ECS. | |
prepareElementForEditor (ilADTTextFormBridge $a_text) | |
getSearchQueryParserValue (ilADTSearchBridge $a_adt_search) | |
Get value for search query parser. | |
searchObjects (ilADTSearchBridge $a_adt_search, ilQueryParser $a_parser, array $a_object_types, $a_locate, $a_search_type) | |
Search. | |
Public Member Functions inherited from ilAdvancedMDFieldDefinition | |
__construct ($a_field_id=null) | |
Constructor. | |
getTypeTitle () | |
Get type title (lang id) | |
getADTDefinition () | |
Get ADT definition instance. | |
getADT () | |
Get ADT instance. | |
getFieldId () | |
Get field_id. | |
setRecordId ($a_id) | |
Set record id. | |
getRecordId () | |
Get record id. | |
setImportId ($a_id_string) | |
Set import id. | |
getImportId () | |
Get import id. | |
setPosition ($a_pos) | |
Set position. | |
getPosition () | |
Get position. | |
setTitle ($a_title) | |
Get title. | |
getTitle () | |
Get title. | |
setDescription ($a_desc) | |
Set description. | |
getDescription () | |
Get description. | |
setSearchable ($a_status) | |
Toggle searchable. | |
isSearchable () | |
Is searchable. | |
setRequired ($a_status) | |
Toggle required. | |
isRequired () | |
Is required field. | |
addToFieldDefinitionForm (ilPropertyFormGUI $a_form, ilAdvancedMDPermissionHelper $a_permissions) | |
Add input elements to definition form. | |
importDefinitionFormPostValues (ilPropertyFormGUI $a_form, ilAdvancedMDPermissionHelper $a_permissions) | |
Import post values from definition form. | |
importDefinitionFormPostValuesNeedsConfirmation () | |
prepareCustomDefinitionFormConfirmation (ilPropertyFormGUI $a_form) | |
prepareDefinitionFormConfirmation (ilPropertyFormGUI $a_form) | |
save () | |
Create new field entry. | |
update () | |
Update field entry. | |
delete () | |
Delete field entry. | |
toXML (ilXmlWriter $a_writer) | |
To Xml. | |
prepareElementForEditor (ilADTFormBridge $a_bridge) | |
Prepare editor form elements. | |
getSearchValueSerialized (ilADTSearchBridge $a_adt_search) | |
Get value for search persistence. | |
setSearchValueSerialized (ilADTSearchBridge $a_adt_search, $a_value) | |
Set value from search persistence. | |
searchSubObjects (ilADTSearchBridge $a_adt_search, $a_obj_id, $sub_obj_type) | |
getLuceneSearchString ($a_value) | |
Get search string in lucene syntax. | |
prepareElementForSearch (ilADTSearchBridge $a_bridge) | |
Prepare search form elements. |
Protected Member Functions | |
initADTDefinition () | |
Init adt instance. | |
importFieldDefinition (array $a_def) | |
Import (type-specific) field definition from DB. | |
getFieldDefinition () | |
Get (type-specific) field definition. | |
addPropertiesToXML (ilXmlWriter $a_writer) | |
Add (type-specific) properties to xml export. | |
parseSearchObjects (array $a_records, array $a_object_types) | |
Add object-data needed for global search to AMD search results. | |
Protected Member Functions inherited from ilAdvancedMDFieldDefinition | |
init () | |
Init properties. | |
setADT (ilADT $a_adt) | |
Set ADT instance. | |
setFieldId ($a_id) | |
Set field_id. | |
getLastPosition () | |
Get last position of record. | |
generateImportId ($a_field_id) | |
Generate unique record id. | |
getDBProperties () | |
Get all definition properties for DB. | |
import (array $a_data) | |
Import from DB. | |
read ($a_field_id) | |
Read field definition. |
Protected Attributes | |
$max_length | |
$multi | |
Protected Attributes inherited from ilAdvancedMDFieldDefinition | |
$field_id | |
$record_id | |
$import_id | |
$position | |
$title | |
$description | |
$searchable | |
$required | |
$adt_def | |
$adt |
Additional Inherited Members | |
Static Public Member Functions inherited from ilAdvancedMDFieldDefinition | |
static | getInstance ($a_field_id, $a_type=null) |
Get definition instance by type. | |
static | getInstanceByTypeString ($a_type) |
Get instance by type string (used by import) | |
static | getInstancesByRecordId ($a_record_id, $a_only_searchable=false) |
Get definitions by record id. | |
static | getInstancesByObjType ($a_obj_type, $a_active_only=true) |
static | getInstanceByImportId ($a_import_id) |
Get definition instance by import id. | |
static | getSearchableDefinitionIds () |
Get searchable definition ids (performance is key) | |
static | getADTGroupForDefinitions (array $a_defs) |
Init ADTGroup for definitions. | |
static | getValidTypes () |
Get all valid types. | |
static | isValidType ($a_type) |
Is given type valid. | |
Data Fields inherited from ilAdvancedMDFieldDefinition | |
const | TYPE_SELECT = 1 |
const | TYPE_TEXT = 2 |
const | TYPE_DATE = 3 |
const | TYPE_DATETIME = 4 |
const | TYPE_INTEGER = 5 |
const | TYPE_FLOAT = 6 |
const | TYPE_LOCATION = 7 |
const | TYPE_SELECT_MULTI = 8 |
Static Protected Member Functions inherited from ilAdvancedMDFieldDefinition | |
static | getTypeString ($a_type) |
Get type string. |
AMD field type text.
Definition at line 14 of file class.ilAdvancedMDFieldDefinitionText.php.
ilAdvancedMDFieldDefinitionText::addCustomFieldToDefinitionForm | ( | ilPropertyFormGUI | $a_form, |
$a_disabled = false |
|||
) |
Add input elements to definition form.
ilPropertyFormGUI | $a_form | |
bool | $a_disabled |
Reimplemented from ilAdvancedMDFieldDefinition.
Definition at line 141 of file class.ilAdvancedMDFieldDefinitionText.php.
References $lng, $multi, ilPropertyFormGUI\addItem(), getMaxLength(), isMulti(), and ilNumberInputGUI\setValue().
|
protected |
Add (type-specific) properties to xml export.
ilXmlWriter | $a_writer |
Reimplemented from ilAdvancedMDFieldDefinition.
Definition at line 181 of file class.ilAdvancedMDFieldDefinitionText.php.
References getMaxLength(), isMulti(), and ilXmlWriter\xmlElement().
|
protected |
Get (type-specific) field definition.
Reimplemented from ilAdvancedMDFieldDefinition.
Definition at line 109 of file class.ilAdvancedMDFieldDefinitionText.php.
References getMaxLength(), and isMulti().
ilAdvancedMDFieldDefinitionText::getFieldDefinitionForTableGUI | ( | ) |
Parse properties for table gui.
Reimplemented from ilAdvancedMDFieldDefinition.
Definition at line 117 of file class.ilAdvancedMDFieldDefinitionText.php.
References $lng, $res, getMaxLength(), and isMulti().
ilAdvancedMDFieldDefinitionText::getMaxLength | ( | ) |
Get max length.
Definition at line 73 of file class.ilAdvancedMDFieldDefinitionText.php.
References $max_length.
Referenced by addCustomFieldToDefinitionForm(), addPropertiesToXML(), getFieldDefinition(), getFieldDefinitionForTableGUI(), and initADTDefinition().
ilAdvancedMDFieldDefinitionText::getSearchQueryParserValue | ( | ilADTSearchBridge | $a_adt_search | ) |
Get value for search query parser.
ilADTSearchBridge | $a_adt_search |
Reimplemented from ilAdvancedMDFieldDefinition.
Definition at line 256 of file class.ilAdvancedMDFieldDefinitionText.php.
ilAdvancedMDFieldDefinitionText::getType | ( | ) |
Get type.
Reimplemented from ilAdvancedMDFieldDefinition.
Definition at line 24 of file class.ilAdvancedMDFieldDefinitionText.php.
References ilAdvancedMDFieldDefinition\TYPE_TEXT.
ilAdvancedMDFieldDefinitionText::getValueForXML | ( | ilADT | $element | ) |
Parse ADT value for xml (export)
ilADT | $element |
Reimplemented from ilAdvancedMDFieldDefinition.
Definition at line 199 of file class.ilAdvancedMDFieldDefinitionText.php.
ilAdvancedMDFieldDefinitionText::importCustomDefinitionFormPostValues | ( | ilPropertyFormGUI | $a_form | ) |
Import custom post values from definition form.
ilPropertyFormGUI | $a_form |
Reimplemented from ilAdvancedMDFieldDefinition.
Definition at line 169 of file class.ilAdvancedMDFieldDefinitionText.php.
References ilPropertyFormGUI\getInput(), setMaxLength(), and setMulti().
|
protected |
Import (type-specific) field definition from DB.
array | $a_def |
Reimplemented from ilAdvancedMDFieldDefinition.
Definition at line 103 of file class.ilAdvancedMDFieldDefinitionText.php.
References setMaxLength(), and setMulti().
ilAdvancedMDFieldDefinitionText::importFromECS | ( | $a_ecs_type, | |
$a_value, | |||
$a_sub_id | |||
) |
Import meta data from ECS.
int | $a_ecs_type | |
mixed | $a_value | |
string | $a_sub_id |
Reimplemented from ilAdvancedMDFieldDefinition.
Definition at line 209 of file class.ilAdvancedMDFieldDefinitionText.php.
References ilECSUtils\TYPE_ARRAY, ilECSUtils\TYPE_INT, ilECSUtils\TYPE_STRING, and ilECSUtils\TYPE_TIMEPLACE.
ilAdvancedMDFieldDefinitionText::importValueFromXML | ( | $a_cdata | ) |
Import value from xml.
string | $a_cdata |
Reimplemented from ilAdvancedMDFieldDefinition.
Definition at line 204 of file class.ilAdvancedMDFieldDefinitionText.php.
References ilAdvancedMDFieldDefinition\getADT().
ilAdvancedMDFieldDefinitionText::importXMLProperty | ( | $a_key, | |
$a_value | |||
) |
Import property from XML.
string | $a_key | |
string | $a_value |
Reimplemented from ilAdvancedMDFieldDefinition.
Definition at line 187 of file class.ilAdvancedMDFieldDefinitionText.php.
References setMaxLength(), and setMulti().
|
protected |
Init adt instance.
Reimplemented from ilAdvancedMDFieldDefinition.
Definition at line 34 of file class.ilAdvancedMDFieldDefinitionText.php.
References ilAdvancedMDFieldDefinition\getInstance(), and getMaxLength().
ilAdvancedMDFieldDefinitionText::isMulti | ( | ) |
Is multi-line?
Definition at line 93 of file class.ilAdvancedMDFieldDefinitionText.php.
References $multi.
Referenced by addCustomFieldToDefinitionForm(), addPropertiesToXML(), getFieldDefinition(), and getFieldDefinitionForTableGUI().
|
protected |
Add object-data needed for global search to AMD search results.
array | $a_records | |
array | $a_object_types |
Reimplemented from ilAdvancedMDFieldDefinition.
Definition at line 261 of file class.ilAdvancedMDFieldDefinitionText.php.
References $ilDB, $res, and $row.
ilAdvancedMDFieldDefinitionText::prepareElementForEditor | ( | ilADTTextFormBridge | $a_text | ) |
Definition at line 245 of file class.ilAdvancedMDFieldDefinitionText.php.
References ilADTTextFormBridge\setMulti().
ilAdvancedMDFieldDefinitionText::searchObjects | ( | ilADTSearchBridge | $a_adt_search, |
ilQueryParser | $a_parser, | ||
array | $a_object_types, | ||
$a_locate, | |||
$a_search_type | |||
) |
Search.
ilADTSearchBridge | $a_adt_search | |
ilQueryParser | $a_parser | |
array | $a_object_types | |
string | $a_locate | |
string | $a_search_type |
Reimplemented from ilAdvancedMDFieldDefinition.
Definition at line 308 of file class.ilAdvancedMDFieldDefinitionText.php.
References ilADTActiveRecordByType\find(), ilQueryParser\getQuotedWords(), ilADTSearchBridge\getSQLCondition(), ilADTActiveRecordByType\SINGLE_COLUMN_NAME, and ilADTTextSearchBridgeSingle\SQL_LIKE.
ilAdvancedMDFieldDefinitionText::setMaxLength | ( | $a_value | ) |
Set max length.
int | $a_value |
Definition at line 59 of file class.ilAdvancedMDFieldDefinitionText.php.
Referenced by importCustomDefinitionFormPostValues(), importFieldDefinition(), and importXMLProperty().
ilAdvancedMDFieldDefinitionText::setMulti | ( | $a_value | ) |
Set multi-line.
string | $a_value |
Definition at line 83 of file class.ilAdvancedMDFieldDefinitionText.php.
Referenced by importCustomDefinitionFormPostValues(), importFieldDefinition(), and importXMLProperty().
|
protected |
Definition at line 16 of file class.ilAdvancedMDFieldDefinitionText.php.
Referenced by getMaxLength().
|
protected |
Definition at line 17 of file class.ilAdvancedMDFieldDefinitionText.php.
Referenced by addCustomFieldToDefinitionForm(), and isMulti().