private static function getStore() { if (!self::$store) { self::$store = new ar_core_store_nodes(ar_core_registry::get('dbConnector'), ar_core_registry::get('objectStore'), ar_core_registry::get('propertyStore')); } return self::$store; }
public static function create($options, $store = null, $auth = null, $cache = null) { if (!isset($auth)) { $auth = new ar_core_authentication($options['auth']); } if (!isset($cache)) { $cache = new ar_core_cacheDisk(array('cacheDir' => $options['store']['files'] . 'cache/', 'headersDir' => $options['store']['files'] . 'cacheheaders/')); } if (!isset($store)) { $store = ar_core_store::create('/', $options['store']); } if (isset($cache) && $cache) { $ariadne = new ar_core_ariadne_cache($options['AR'], $store, $auth, $cache); } else { $ariadne = new ar_core_ariadne($options['AR'], $store, $auth); } return $ariadne; }