Created
December 21, 2016 13:29
-
-
Save vozhukh/6497f63945a07a055044dda4892eb342 to your computer and use it in GitHub Desktop.
join 2-х хайлоад інфоблоків
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
$entity_data_class= Worker::GetEntityDataClass(Settings::getParam('GroupersData'));// обгортка на отримання $entity->getDataClass() | |
$entity_data_class2 =(string) Worker::GetEntityDataClass(Settings::getParam('GroupersTitle')); | |
// обгортка на entity getList | |
$rsData= Worker::getListEntity($entity_data_class, | |
array( | |
'runtime' => array( | |
'ELEMENT' => array( | |
'data_type' => $entity_data_class2, //клас на HL тобто - \GroupersTitleTable | |
'reference' => array( | |
'=this.UF_TITLE' => 'ref.ID' | |
), | |
'join_type' => 'inner' | |
), | |
), | |
'order' =>array('UF_SORT_GROUP'=>'asc', 'UF_SORT_PROP'=>'asc'), | |
'filter'=> array('=UF_GROUP' =>$groupSpec), | |
'select'=> array('ID','UF_TITLE', 'UF_SORT_PROP','UF_SORT_GROUP', 'TITLE'=>'ELEMENT.UF_NAME'), | |
), | |
true // get Only resurece | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment