Exemplo n.º 1
0
 /**
  * @see parent::loadQueryList()
  */
 function loadQueryList($query)
 {
     /** @var self[] $mediusers */
     CMediusers::$user_autoload = false;
     $mediusers = parent::loadQueryList($query);
     CMediusers::$user_autoload = true;
     if (!count($mediusers)) {
         return array();
     }
     // Mass user speficic preloading
     $user = new CUser();
     $user->loadAll(array_keys($mediusers));
     // Attach cached user
     foreach ($mediusers as $_mediuser) {
         $_mediuser->updateFormFields();
     }
     return $mediusers;
 }