src/WebApp/Context/Output.php
public static function get($key, $nullIfUndefined = true, $defaultValueIfUndefined = null)
  {
    if (!isset(self::$vars[$key])) {
      if ($nullIfUndefined) {
        if ($defaultValueIfUndefined) {
          return $defaultValueIfUndefined;
        }
        return null;
      } else {
        throw new \Exception('Valeur '.$key.' non définie');
      }
    } else {
      return self::$vars[$key];
    }
  }
public static function get($key, $nullIfUndefined = true, $defaultValueIfUndefined = null)
  {
    if (!isset(self::$vars[$key])) {
      if ($nullIfUndefined) {
        if ($defaultValueIfUndefined) {
          return $defaultValueIfUndefined;
        }
        return null;
      } else {
        throw new \Exception('Valeur '.$key.' non définie');
      }
    } else {
      return self::$vars[$key];
    }
  }
public static function get ( $ key , $ nullIfUndefined = true , $ defaultValueIfUndefined = null ) { if ( ! isset ( self :: $ vars [ $ key ] ) ) { if ( $ nullIfUndefined ) { if ( $ defaultValueIfUndefined ) { return $ defaultValueIfUndefined ; } return null ; } else { throw new \ Exception ( 'Valeur ' . $ key . ' non définie') ; } } else { return self :: $ vars [ $ key ] ; } }
Get a variable's content

@param  string  $key                      Variable's name
@param  boolean $nullIfUndefined          (optional) Return null if undefined (default: TRUE)
@param  string  $defaultValueIfUndefined  (optional) Return a specified value if undefined
@return void
Get a variable s content