Example #1
0
 /**
  * @since 2.1
  *
  * @return PropertyRegistry
  */
 public static function getInstance()
 {
     if (self::$instance === null) {
         self::$instance = new self(DataTypeRegistry::getInstance(), $GLOBALS['smwgContLang']->getPropertyLabels(), $GLOBALS['smwgContLang']->getPropertyAliases());
         self::$instance->registerPredefinedProperties($GLOBALS['smwgUseCategoryHierarchy']);
     }
     return self::$instance;
 }
 /**
  * @since 2.1
  *
  * @return PropertyRegistry
  */
 public static function getInstance()
 {
     if (self::$instance !== null) {
         return self::$instance;
     }
     $propertyLabelFinder = ApplicationFactory::getInstance()->getPropertyLabelFinder();
     $extraneousLanguage = Localizer::getInstance()->getExtraneousLanguage();
     $propertyAliasFinder = new PropertyAliasFinder($extraneousLanguage->getPropertyAliases(), $extraneousLanguage->getCanonicalPropertyAliases());
     self::$instance = new self(DataTypeRegistry::getInstance(), $propertyLabelFinder, $propertyAliasFinder, $GLOBALS['smwgDataTypePropertyExemptionList']);
     self::$instance->registerPredefinedProperties($GLOBALS['smwgUseCategoryHierarchy']);
     return self::$instance;
 }