예제 #1
0
 /**
  * Load CExObjects and inject the CExObject instance into $ex_object
  *
  * @param CMbObject $object     The host object
  * @param null      &$ex_object The variable where the CExObject will be injected
  *
  * @return CExObject[]
  */
 function loadExObjects(CMbObject $object, &$ex_object = null)
 {
     $ex_object = new CExObject($this->_id);
     $ex_object->setObject($object);
     /** @var CExObject[] $list */
     $list = $ex_object->loadMatchingList();
     foreach ($list as $_object) {
         $_object->_ex_class_id = $this->_id;
         $_object->setExClass();
     }
     return $list;
 }