Bitrix Site Manager



Returns an array of field values converted to an 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

The method returns an array with the information block element fields in the format of Array("field"=>"value" [, ...]) and moves the pointer to the next record.

The method returns false when it reaches the last record or if the result contains no records.

See Also

  • CDBResult
  • CIBlockResult::GetNextElement
  • CIBlockElement::GetList
  • Fields of information block element
  • Example

    $res = CIBlockElement::GetByID($_GET["PID"]);
    if ($ar_res = $res->GetNext())
        echo '<a href="'.$ar_res['detail_page_url'].'">'.$ar_res['name'].'</a>';