ILIAS
Release_5_0_x_branch Revision 61816
|
This is a ADT-based example object. More...
Data Fields | |
const | INTERESTS_NONE = 0 |
const | INTERESTS_LANGUAGES = 1 |
const | INTERESTS_IT = 2 |
Protected Member Functions | |
initProperties () | |
Init properties (aka set ADT definition) | |
initDBBridge (ilADTGroupDBBridge $a_adt_db) | |
Init (properties) DB bridge. | |
parsePrimary (array $a_args) | |
Parse incoming primary key. | |
hasPrimary () | |
Check if currently has primary. | |
createPrimaryKey () | |
Create new primary key, e.g. | |
Protected Member Functions inherited from ilADTBasedObject | |
initActiveRecordInstance () | |
Init active record helper for current table, primary and properties. |
Protected Attributes | |
$id | |
$properties | |
Protected Attributes inherited from ilADTBasedObject | |
$properties = array() | |
$db_errors = array() |
Additional Inherited Members | |
Public Member Functions inherited from ilADTBasedObject | |
__construct () | |
Constructor. | |
getProperties () | |
Get all properties. | |
isValid () | |
Validate. | |
__call ($a_method, $a_value) | |
Get property magic method ("get<PropertyName>()") | |
read () | |
Read record. | |
create () | |
Create record (only if valid) | |
update () | |
Update record (only if valid) | |
delete () | |
Delete record. | |
getDBErrors () | |
Get DB errors. | |
translateDBErrorCodes (array $a_codes) | |
Translate DB error codes. | |
getAllTranslatedErrors ($delimiter="\n") | |
Get translated error codes (DB, Validation) |
This is a ADT-based example object.
It has all supported ADTs and shows DB sequence-handling
Definition at line 10 of file class.ilADTTest.php.
|
protected |
Create new primary key, e.g.
sequence
Reimplemented from ilADTBasedObject.
Definition at line 114 of file class.ilADTTest.php.
References $ilDB.
|
protected |
Check if currently has primary.
Reimplemented from ilADTBasedObject.
Definition at line 109 of file class.ilADTTest.php.
References $id.
|
protected |
Init (properties) DB bridge.
ilADTGroupDBBridge | $a_adt_db |
Reimplemented from ilADTBasedObject.
Definition at line 98 of file class.ilADTTest.php.
References ilADTGroupDBBridge\setPrimary(), and ilADTGroupDBBridge\setTable().
|
protected |
Init properties (aka set ADT definition)
Reimplemented from ilADTBasedObject.
Definition at line 22 of file class.ilADTTest.php.
References $lang, $lng, $options, and ilADTFactory\getInstance().
|
protected |
Parse incoming primary key.
array | $a_args |
Reimplemented from ilADTBasedObject.
Definition at line 104 of file class.ilADTTest.php.
|
protected |
Definition at line 12 of file class.ilADTTest.php.
Referenced by hasPrimary().
|
protected |
Definition at line 13 of file class.ilADTTest.php.
const ilADTTest::INTERESTS_IT = 2 |
Definition at line 17 of file class.ilADTTest.php.
const ilADTTest::INTERESTS_LANGUAGES = 1 |
Definition at line 16 of file class.ilADTTest.php.
const ilADTTest::INTERESTS_NONE = 0 |
Definition at line 15 of file class.ilADTTest.php.