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.
Parameter | Description |
---|---|
arDefaultVariableAliases | An array of default variable aliases. |
arCustomUrlTemplates | An array of variable aliases passed in the input parameters of the component. |
An array of variable aliases.
// 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", ) )
© 2001-2007 Bitrix | Bitrix Site Manager |