Exemplo n.º 1
0
 public function configureData()
 {
     // Configure top block
     $top = new Block_Top();
     $top->configure();
     // Configure active block
     $active = new Block_Question_Active();
     $active->configure();
     // Configure archive block
     $archive = new Block_Question_Archive();
     $archive->configure();
 }
Exemplo n.º 2
0
 public function configureData()
 {
     // Configure top block
     $top = new Block_Top();
     $top->configure();
     if ($this->displayActive()) {
         // Configure active block
         $active = new Block_Question_Active();
         $active->configure();
     }
     if ($this->displayArchives()) {
         // Configure archive block
         $archive = new Block_Question_Archive();
         $archive->configure();
     }
 }