Bitrix Site Manager

_CIBElement::GetProperty

array
_CIBElement::GetProperty(
   mixed ID
);

The method returns the property parameters and its values for this information block element.

Parameters

ParameterDescription
ID Numeric (ID) or mnemonic code of the property to return.

Return Values

The method returns the property fields array and the additional keys and values:

See Also

  • CIBlockElement::GetProperty()
  • _CIBElement::GetProperties()

    Example


    <?
    $res = CIBlockElement::GetByID($_GET["PID"]);
    if($obRes = $res->GetNextElement())
    {
      $ar_res = $obRes->GetProperty("PHOTOS");
      print_r($ar_res);
    }
    ?>

    Sample output:


    Array
    (
        [ID] => 388
        [TIMESTAMP_X] => 20050119162457
        [IBLOCK_ID] => 11
        [NAME] => Photos with description
        [ACTIVE] => Y
        [SORT] => 500
        [CODE] => 
        [DEFAULT_VALUE] => 
        [PROPERTY_TYPE] => F
        [ROW_COUNT] => 1
        [COL_COUNT] => 30
        [LIST_TYPE] => L
        [MULTIPLE] => Y
        [XML_ID] => 
        [FILE_TYPE] => 
        [MULTIPLE_CNT] => 5
        [TMP_ID] => 
        [WITH_DESCRIPTION] => Y
        [LINK_IBLOCK_ID] => 0
        [VALUE_TYPE] => text
        [VALUE_ENUM] => 
        [VALUE] => Array
            (
                [0] => 2311
            )
    
        [~VALUE] => Array
            (
                [0] => 2311
            )
    
        [DESCRIPTION] => Array
            (
                [0] => Descr
            )
    
        [~DESCRIPTION] => Array
            (
                [0] => Descr
            )
    
        [PROPERTY_VALUE_ID] => Array
            (
                [0] => 53865
            )
    
        [~NAME] => Photos with description
        [~DEFAULT_VALUE] => 
    )