/**
  * @since 1.0
  *
  * @return boolean
  */
 public function register()
 {
     $propertyDefinitions = array(self::SBL_PARENTPAGE => array('label' => SBL_PROP_PARENTPAGE, 'type' => '_wpg', 'alias' => wfMessage('sbl-property-alias-parentpage')->text(), 'visbility' => true));
     foreach ($propertyDefinitions as $propertyId => $definition) {
         DIProperty::registerProperty($propertyId, $definition['type'], $definition['label'], $definition['visbility']);
         DIProperty::registerPropertyAlias($propertyId, $definition['alias']);
     }
     return true;
 }
 protected function registerPropertiesFromList(array $propertyList)
 {
     foreach ($propertyList as $externalId) {
         $propertyId = $this->getPropertyId($externalId);
         if ($propertyId === null) {
             continue;
         }
         DIProperty::registerProperty($propertyId, $this->getPropertyDataItemTypeId($externalId), $this->getPropertyLabel($externalId), $this->getPropertyVisibility($externalId));
         DIProperty::registerPropertyAlias($propertyId, $this->getPropertyAlias($externalId));
     }
 }
 /**
  * A function for registering/overwriting predefined properties for SMW. Should be called from
  * within the hook 'smwInitProperties'. Ids should start with three underscores "___" to avoid
  * current and future confusion with SMW built-ins.
  *
  * @deprecated Use DIProperty::registerProperty(). Will vanish before SMW 1.7.
  */
 public static function registerProperty($id, $typeid, $label = false, $show = false)
 {
     DIProperty::registerProperty($id, $typeid, $label, $show);
 }