TYPO3 CMS  TYPO3_6-2
StorageFactory.php
Go to the documentation of this file.
1 <?php
3 
22 
30  static protected $preferredStorage = 'TYPO3\\CMS\\Rsaauth\\Storage\\SplitStorage';
31 
41  static protected $storageInstance = NULL;
42 
50  static public function getStorage() {
51  if (is_null(self::$storageInstance)) {
52  self::$storageInstance = \TYPO3\CMS\Core\Utility\GeneralUtility::getUserObj(self::$preferredStorage);
53  }
54  return self::$storageInstance;
55  }
56 
64  static public function setPreferredStorage($preferredStorage) {
65  self::$preferredStorage = $preferredStorage;
66  }
67 
68 }
static getUserObj($classRef, $checkPrefix='', $silent=FALSE)
static setPreferredStorage($preferredStorage)