ILIAS
Release_4_4_x_branch Revision 61816
|
Public Member Functions | |
__construct ($a_field_id, $a_obj_id=0, $a_sub_type="", $a_sub_id=0) | |
Singleton constructor. | |
__toString () | |
To string method. | |
setObjId ($a_obj_id) | |
set object id | |
setSubType ($a_val) | |
Set sub type. | |
getSubType () | |
Get sub type. | |
setSubId ($a_val) | |
Set sub id. | |
getSubId () | |
Get sub id. | |
appendXML ($xml_writer) | |
append value xml | |
setValue ($a_value) | |
Set value. | |
getValue () | |
get value | |
isDisabled () | |
Check if value is imported and therefore disabled. | |
toggleDisabledStatus ($a_status) | |
Toggle disabled status. | |
delete () | |
Delete value. | |
save () | |
Save data. |
Static Public Member Functions | |
static | _getInstance ($a_obj_id, $a_field_id, $a_sub_type="", $a_sub_id=0) |
Get instance. |
Protected Attributes | |
$db |
Private Member Functions | |
read () | |
Read data. |
Private Attributes | |
$obj_id | |
$field_id | |
$value | |
$disabled = false |
Static Private Attributes | |
static | $instances = array() |
Definition at line 14 of file class.ilAdvancedMDValue.php.
ilAdvancedMDValue::__construct | ( | $a_field_id, | |
$a_obj_id = 0 , |
|||
$a_sub_type = "" , |
|||
$a_sub_id = 0 |
|||
) |
Singleton constructor.
private
int | field_id |
int | obj_id |
Definition at line 33 of file class.ilAdvancedMDValue.php.
References read(), setSubId(), and setSubType().
ilAdvancedMDValue::__toString | ( | ) |
To string method.
public
Definition at line 74 of file class.ilAdvancedMDValue.php.
References $value.
|
static |
Get instance.
public
Definition at line 55 of file class.ilAdvancedMDValue.php.
Referenced by ilAdvancedMDValues\_appendXMLByObjId(), ilRemoteObjectBase\importMetadataFromJson(), ilAdvancedMDRecordGUI\loadECSDurationPost(), ilAdvancedMDRecordGUI\loadFromPost(), ilAdvancedMDRecordGUI\parseEditor(), ilAdvancedMDRecordGUI\parseInfoPage(), and ilAdvancedMDRecordGUI\showECSStart().
ilAdvancedMDValue::appendXML | ( | $xml_writer | ) |
append value xml
public
object | instance of ilXmlWriter |
Definition at line 142 of file class.ilAdvancedMDValue.php.
References ilAdvancedMDFieldDefinition\_lookupImportId(), and getValue().
ilAdvancedMDValue::delete | ( | ) |
Delete value.
public
Definition at line 205 of file class.ilAdvancedMDValue.php.
References $query, $res, getSubId(), and getSubType().
ilAdvancedMDValue::getSubId | ( | ) |
Get sub id.
Definition at line 130 of file class.ilAdvancedMDValue.php.
Referenced by delete(), and read().
ilAdvancedMDValue::getSubType | ( | ) |
Get sub type.
Definition at line 110 of file class.ilAdvancedMDValue.php.
Referenced by delete(), read(), and save().
ilAdvancedMDValue::getValue | ( | ) |
get value
public
Definition at line 169 of file class.ilAdvancedMDValue.php.
References $value.
Referenced by appendXML(), and save().
ilAdvancedMDValue::isDisabled | ( | ) |
Check if value is imported and therefore disabled.
This is the case for imported course links.
public
Definition at line 182 of file class.ilAdvancedMDValue.php.
References $disabled.
Referenced by save().
|
private |
Read data.
private
Definition at line 246 of file class.ilAdvancedMDValue.php.
References $query, $res, $row, DB_FETCHMODE_OBJECT, getSubId(), getSubType(), setValue(), and toggleDisabledStatus().
Referenced by __construct().
ilAdvancedMDValue::save | ( | ) |
Save data.
public
Definition at line 223 of file class.ilAdvancedMDValue.php.
References $query, $res, getSubType(), getValue(), and isDisabled().
ilAdvancedMDValue::setObjId | ( | $a_obj_id | ) |
set object id
public
int | obj_id |
Definition at line 86 of file class.ilAdvancedMDValue.php.
ilAdvancedMDValue::setSubId | ( | $a_val | ) |
Set sub id.
integer | $a_val | sub object id |
Definition at line 120 of file class.ilAdvancedMDValue.php.
Referenced by __construct().
ilAdvancedMDValue::setSubType | ( | $a_val | ) |
Set sub type.
string | $a_val | sub type |
Definition at line 96 of file class.ilAdvancedMDValue.php.
Referenced by __construct().
ilAdvancedMDValue::setValue | ( | $a_value | ) |
Set value.
public
string | value |
Definition at line 159 of file class.ilAdvancedMDValue.php.
Referenced by read().
ilAdvancedMDValue::toggleDisabledStatus | ( | $a_status | ) |
Toggle disabled status.
public
bool | disabled status |
Definition at line 194 of file class.ilAdvancedMDValue.php.
Referenced by read().
|
protected |
Definition at line 18 of file class.ilAdvancedMDValue.php.
|
private |
Definition at line 23 of file class.ilAdvancedMDValue.php.
Referenced by isDisabled().
|
private |
Definition at line 21 of file class.ilAdvancedMDValue.php.
|
staticprivate |
Definition at line 16 of file class.ilAdvancedMDValue.php.
|
private |
Definition at line 20 of file class.ilAdvancedMDValue.php.
|
private |
Definition at line 22 of file class.ilAdvancedMDValue.php.
Referenced by __toString(), and getValue().