Example #1
0
 public function __get($name)
 {
     // preload taskgroup if its called for
     if ($name === "_taskgroup") {
         $this->_taskgroup = $this->getTaskGroup();
         return $this->_taskgroup;
     } else {
         return parent::__get($name);
     }
 }