Bitrix Site Manager

_CIBElement::GetFields

array
_CIBElement::GetFields();

Returns an array of fields converted to the HTML-safe format. Variables #IBLOCK_ID# etc. are replaced with their corresponding values in fields LIST_PAGE_URL and DETAIL_PAGE_URL, so these fields will contain valid links.

Return Values

Returns an array with the with the information block element fields: Array("field"=>"value" [, ...]).

See Also

  • Information block element fields
  • CIBlockResult::GetNext
  • CIBlockElement::GetList

    Example


    <?
    $res = CIBlockElement::GetByID($_GET["PID"]);
    if($obRes = $res->GetNextElement())
    {
      $ar_res = $obRes->GetFields();
      echo '<a href="'.$ar_res['detail_page_url'].'">'.$ar_res['name'].'</a>';
    }
    ?>