Ejemplo n.º 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"];
             }
         }
     }
 }
Ejemplo n.º 2
0
 /**
  * @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;
     }
 }