2 require_once(dirname(__FILE__) .
'/../class.ActiveRecord.php');
25 public static function getInstance(&$model)
32 $storage = self::getCalledClass();
33 $method = self::_toCamelCase(
'get_' . $storage->getArFieldList()->getPrimaryFieldName());
34 $storage->setExternalModelForStorage($model);
35 $storage->{$storage->getArFieldList()->getPrimaryFieldName()} = $model->{$method}();
36 if ($storage->{$storage->getArFieldList()->getPrimaryFieldName()}) {
39 $storage->mapFromActiveRecord();
89 $method = self::_toCamelCase(
'get_' .
$key);
103 $method = self::_toCamelCase(
'set_' .
$key);
120 $this->external_model_for_storage = $model;
$external_model_for_storage
getExternalModelForStorage()
update($pash, $contents, Config $config)
static storeFromStorage($storage_class_name, arStorageInterface $foreign_model)
setValueToModel($key, $value)
setExternalModelForStorage($model)