/**
  * Enhances the default initialize function and overlays the found
  * "NewsOther" records with the actual news
  */
 protected function initialize()
 {
     if (!is_array($this->queryResult)) {
         parent::initialize();
         $this->queryResult = $this->getOverlayedNews();
     }
 }
예제 #2
0
 /**
  * Loads the objects this QueryResult is supposed to hold
  *
  * @return void
  */
 protected function initialize()
 {
     parent::initialize();
     if (!$this->shuffled) {
         shuffle($this->queryResult);
         $this->shuffled = true;
     }
 }