ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
|
This is a ADT-based example object It has all supported ADTs and shows DB sequence-handling. 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) More... | |
initDBBridge (ilADTDBBridge $a_adt_db) | |
Init (properties) DB bridge. More... | |
parsePrimary (array $a_args) | |
Parse incoming primary key. More... | |
hasPrimary () | |
Check if currently has primary. More... | |
createPrimaryKeyb () | |
Create new primary key, e.g. More... | |
![]() | |
initProperties () | |
Init properties (aka set ADT definition) More... | |
parsePrimary (array $a_args) | |
Parse incoming primary key. More... | |
hasPrimary () | |
Check if currently has primary. More... | |
createPrimaryKeyb () | |
Create new primary key, e.g. More... | |
initDBBridge (ilADTDBBridge $a_adt_db) | |
Init (properties) DB bridge. More... | |
initActiveRecordInstance () | |
Init active record helper for current table, primary and properties. More... | |
Protected Attributes | |
int | $id |
ilADT | $properties |
![]() | |
ilADT | $properties |
array | $db_errors = [] |
ilDBInterface | $db |
ilLanguage | $lng |
Additional Inherited Members | |
![]() | |
__construct () | |
Constructor Tries to read record from DB, in accordance to current ILIAS behaviour. More... | |
getProperties () | |
Get all properties. More... | |
isValid () | |
Validate. More... | |
__call ($a_method, $a_value) | |
Get property magic method ("get<PropertyName>()") Setters are type-specific and cannot be magic. More... | |
read () | |
Read record. More... | |
create () | |
Create record (only if valid) More... | |
update () | |
Update record (only if valid) More... | |
delete () | |
Delete record. More... | |
getDBErrors () | |
Get DB errors. More... | |
translateDBErrorCodes (array $a_codes) | |
Translate DB error codes. More... | |
getAllTranslatedErrors (string $delimiter="\n") | |
Get translated error codes (DB, Validation) More... | |
This is a ADT-based example object It has all supported ADTs and shows DB sequence-handling.
Definition at line 25 of file class.ilADTTest.php.
|
protected |
Create new primary key, e.g.
sequence
Reimplemented from ilADTBasedObject.
Definition at line 123 of file class.ilADTTest.php.
|
protected |
Check if currently has primary.
Reimplemented from ilADTBasedObject.
Definition at line 118 of file class.ilADTTest.php.
References $id.
|
protected |
Init (properties) DB bridge.
ilADTDBBridge | $a_adt_db |
Reimplemented from ilADTBasedObject.
Definition at line 107 of file class.ilADTTest.php.
References ilADTDBBridge\setPrimary(), and ilADTDBBridge\setTable().
|
protected |
Init properties (aka set ADT definition)
Reimplemented from ilADTBasedObject.
Definition at line 36 of file class.ilADTTest.php.
References $lang, ilADTFactory\getInstance(), and ILIAS\Repository\lng().
|
protected |
Parse incoming primary key.
array | $a_args |
Reimplemented from ilADTBasedObject.
Definition at line 113 of file class.ilADTTest.php.
References ILIAS\Repository\int().
|
protected |
Definition at line 27 of file class.ilADTTest.php.
Referenced by hasPrimary().
|
protected |
Definition at line 28 of file class.ilADTTest.php.
const ilADTTest::INTERESTS_IT = 2 |
Definition at line 32 of file class.ilADTTest.php.
const ilADTTest::INTERESTS_LANGUAGES = 1 |
Definition at line 31 of file class.ilADTTest.php.
const ilADTTest::INTERESTS_NONE = 0 |
Definition at line 30 of file class.ilADTTest.php.