Ejemplo n.º 1
0
 /**
  * Check if a parameters path exists.
  *
  * @param   string  $key  The name of the param or sub-param, e.g. a.b.c
  * @return  boolean
  */
 public function has($key)
 {
     // Check for namespaced get( 'namespace/key' ):
     if (strpos($key, '/') !== false) {
         list($namespace, $subKey) = explode('/', $key, 2);
         return $this->getNamespaceRegistry($namespace)->has($subKey);
     }
     return $this->hasInThis($key) || $this->parent && $this->parent->has($key);
 }
Ejemplo n.º 2
0
 /**
  * Check if a parameters path exists.
  *
  * @param   string  $key  The name of the param or sub-param, e.g. a.b.c
  * @return  boolean
  */
 public function has($key)
 {
     return $this->hasInThis($key) || $this->parent && $this->parent->has($key);
 }