Beispiel #1
0
 function __construct($key, $property)
 {
     parent::__construct($key);
     if (is_array($property)) {
         $this->property = $property;
         if (strlen($property["USER_TYPE"])) {
             $propertyUserType = \CIBlockProperty::GetUserType($property["USER_TYPE"]);
             if (array_key_exists("GetPublicViewHTML", $propertyUserType) && is_callable($propertyUserType["GetPublicViewHTML"])) {
                 $this->propertyFormatFunction = $propertyUserType["GetPublicViewHTML"];
             }
         }
     }
 }
 /**
  * @param integer $key  Iblock element identifier.
  * @param array|mixed $property Iblock property array.
  */
 function __construct($key, $property)
 {
     parent::__construct($key);
     if (is_array($property)) {
         $this->property = $property;
     }
 }