Module.php

00001 <?php
00009 class Dsao_Module
00010 {
00014   protected $_active = null;
00015 
00019   protected $_name = null;
00020 
00029   public function __construct($name, $active = true)
00030   {
00031     $this->setActive($active);
00032 
00033     $this->setName($name);
00034   }
00035 
00042   public function getMenu()
00043   {
00044     // Falls Menü noch nicht gesetzt wurde
00045     if (null === $this->_menu)
00046     {
00047       throw new Dsao_Exception('dsao_module_menu_not_set');
00048     }
00049 
00050     return $this->_menu;
00051   }
00052 
00058   public final function getName()
00059   {
00060     return $this->_name;
00061   }
00062 
00068   public final function isActive()
00069   {
00070     return $this->_active;
00071   }
00072 
00079   public final function setActive($active = true)
00080   {
00081     $this->_active = (bool) $active;
00082 
00083     return $this;
00084   }
00085 
00092   public final function setName($name)
00093   {
00094     $this->_name = $name;
00095 
00096     return $this;
00097   }
00098 }

Erzeugt am Fri Sep 18 19:04:11 2009 für DSA online - Morgendaemmerung von  doxygen 1.5.7.1