Ejemplo n.º 1
0
 /**
  * @param string $id
  * @return MAbstractController
  */
 protected function getControl($id)
 {
     MDataType::mustBeString($id);
     return $this->controls->getValue($id);
 }
Ejemplo n.º 2
0
 /**
  * Returns the value for a specific <i>$key</i>.<br />
  * If the <i>$key</i> is not set a <i>$defaultValue</i> will be returned.
  * 
  * @param string $key
  * @param mixed $defaultValue
  * @return mixed
  */
 public function getValue($key, $defaultValue = null)
 {
     return parent::getValue($key, $defaultValue);
 }
Ejemplo n.º 3
0
 /**
  * Adds a new definition of Route.
  *
  * @param MRoute $route
  * @throws MInvalidClassNameException
  * @throws MInvalidMethodNameException
  * @throws MInvalidRoleException
  * @throws MInvalidRouteTypeException
  */
 public function add(MRoute $route)
 {
     $this->validateRoute($route);
     $this->routeList->insert($route->getRole(), $route);
 }