Bitrix Site Manager

CComponentEngine::MakeComponentVariableAliases

array
MakeComponentVariableAliases(
 array arDefaultVariableAliases ,
 array arCustomVariableAliases
);

The method takes default variable aliases and the component variable aliases, and replaces default variable aliases with those overridden in the component input parameters.

Parameters

Parameter Description
arDefaultVariableAliases An array of default variable aliases.
arCustomUrlTemplates An array of variable aliases passed in the input parameters of the component.

Return Values

An array of variable aliases.

Example


// say the default variable aliases array is
$arDefaultVariableAliases404 = array(); // and the input parameter has the following aliases $arParams["VARIABLE_ALIASES"] = array(     "element" => array(         "IBLOCK_ID" => "BID",         "SECTION_ID" => "SID", ) ); // calling MakeComponentVariableAliases: $arVariableAliases = CComponentEngine::MakeComponentVariableAliases($arDefaultVariableAliases404, $arParams["VARIABLE_ALIASES"]); // creates the following $arVariableAliases: $arVariableAliases = array(     "element" => array(         "IBLOCK_ID" => "BID",         "SECTION_ID" => "SID", ) )

See Also

  • Compound component structure
  • Input variable aliases
  • CComponentEngine::InitComponentVariables