ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class CachedActiveRecord. More...
Static Public Member Functions | |
static | find ($primary_key, array $add_constructor_args=array()) |
static | connector (arConnector $connector) |
![]() | |
static | returnDbTableName () |
static | installDB () |
static | renameDBField ($old_name, $new_name) |
static | tableExists () |
static | fieldExists ($field_name) |
static | removeDBField ($field_name) |
static | updateDB () |
static | resetDB () |
static | truncateDB () |
static | flushDB () |
static | preloadObjects () |
static | additionalParams (array $additional_params) |
static | findOrFail ($primary_key, array $add_constructor_args=array()) |
Tries to find the object and throws an Exception if object is not found, instead of returning null. More... | |
static | findOrGetInstance ($primary_key, array $add_constructor_args=array()) |
static | where ($where, $operator=null) |
static | innerjoinAR (ActiveRecord $ar, $on_this, $on_external, $fields=array(' *'), $operator='=', $both_external=false) |
static | innerjoin ($tablename, $on_this, $on_external, $fields=array(' *'), $operator='=', $both_external=false) |
static | leftjoin ($tablename, $on_this, $on_external, $fields=array(' *'), $operator='=', $both_external=false) |
static | orderBy ($orderBy, $orderDirection='ASC') |
static | dateFormat ($date_format='d.m.Y - H:i:s') |
static | limit ($start, $end) |
static | affectedRows () |
static | count () |
static | get () |
static | debug () |
static | first () |
static | getCollection () |
static | last () |
static | getFirstFromLastQuery () |
static | connector (arConnector $connector) |
static | raw ($set_raw=true) |
static | getArray ($key=null, $values=null) |
static | _toCamelCase ($str, $capitalise_first_char=false) |
Private Member Functions | |
buildHash () | |
Private Attributes | |
$_hash = '' | |
Additional Inherited Members | |
![]() | |
const | ACTIVE_RECORD_VERSION = '2.0.7' |
![]() | |
serializeToCSV ($field) | |
This method is called for every field of your instance if you use __asCsv. More... | |
installDatabase () | |
![]() | |
static | getCalledClass () |
static | fromCamelCase ($str) |
![]() | |
$ar_safe_read = true | |
$connector_container_name = '' | |
Class CachedActiveRecord.
Definition at line 7 of file class.CachedActiveRecord.php.
CachedActiveRecord::__construct | ( | $primary_key = 0 , |
|
arConnector | $connector = null |
||
) |
Definition at line 39 of file class.CachedActiveRecord.php.
References arConnectorMap\register().
CachedActiveRecord::afterObjectLoad | ( | ) |
Definition at line 50 of file class.CachedActiveRecord.php.
References buildHash().
CachedActiveRecord::buildFromArray | ( | array | $array | ) |
Definition at line 74 of file class.CachedActiveRecord.php.
|
private |
Definition at line 56 of file class.CachedActiveRecord.php.
References $name, and ActiveRecord\getArFieldList().
Referenced by afterObjectLoad(), and update().
|
static |
Definition at line 134 of file class.CachedActiveRecord.php.
CachedActiveRecord::copy | ( | $new_id = 0 | ) |
Definition at line 98 of file class.CachedActiveRecord.php.
References getCache().
CachedActiveRecord::create | ( | ) |
Definition at line 89 of file class.CachedActiveRecord.php.
References getCache().
CachedActiveRecord::delete | ( | ) |
Definition at line 117 of file class.CachedActiveRecord.php.
References getCache().
|
static |
Definition at line 126 of file class.CachedActiveRecord.php.
Referenced by ilMMAbstractItemFacade\delete(), ilMMItemTranslationGUI\deleteTranslations(), ilMMCustomItemFacade\getCustomStorage(), ilMMCustomProvider\getSingleCustomItem(), ilMMAbstractItemFacade\hasStorage(), ilMMItemTranslationGUI\initToolbar(), ilMMItemTranslationTableGUI\parseData(), ilMMItemStorage\register(), ilGSIdentificationStorage\registerIdentification(), ilGSProviderStorage\registerIdentifications(), and ilMMItemTranslationStorage\storeTranslation().
|
abstract |
Referenced by copy(), create(), delete(), and update().
|
final |
Definition at line 22 of file class.CachedActiveRecord.php.
References ActiveRecord\getArFieldList(), ActiveRecord\getConnectorContainerName(), and ActiveRecord\getPrimaryFieldValue().
Referenced by arObjectCache\flush(), arObjectCache\get(), and arObjectCache\isCached().
CachedActiveRecord::getTTL | ( | ) |
Definition at line 31 of file class.CachedActiveRecord.php.
CachedActiveRecord::read | ( | ) |
Definition at line 104 of file class.CachedActiveRecord.php.
CachedActiveRecord::save | ( | ) |
Definition at line 84 of file class.CachedActiveRecord.php.
CachedActiveRecord::store | ( | ) |
Definition at line 79 of file class.CachedActiveRecord.php.
CachedActiveRecord::storeObjectToCache | ( | ) |
Definition at line 66 of file class.CachedActiveRecord.php.
CachedActiveRecord::update | ( | ) |
Definition at line 109 of file class.CachedActiveRecord.php.
References buildHash(), getCache(), and League\Flysystem\Adapter\Polyfill\update().
Referenced by ilMMItemStorage\create().
|
private |
Definition at line 12 of file class.CachedActiveRecord.php.