Ejemplo n.º 1
0
 public function __get($name)
 {
     if ($name == "lists") {
         if (!isset($this->lists)) {
             //Get the list of lists that are being displayed for the widget
             $this->lists = array();
             $listWidgetList = new ListWidgetList();
             $listWidgetList->listWidgetId = $this->id;
             $listWidgetList->orderBy('weight ASC');
             $listWidgetList->find();
             while ($listWidgetList->fetch()) {
                 $this->lists[$listWidgetList->id] = clone $listWidgetList;
             }
         }
         return $this->lists;
     }
     return null;
 }