src/wcmf/lib/presentation/Controller.php
protected function getLocalSessionValue($key, $default=null) {
    $sessionVarname = get_class($this);
    $localValues = $this->session->get($sessionVarname, null);
    return array_key_exists($key, $localValues) ? $localValues[$key] : $default;
  }
protected function getLocalSessionValue($key, $default=null) {
    $sessionVarname = get_class($this);
    $localValues = $this->session->get($sessionVarname, null);
    return array_key_exists($key, $localValues) ? $localValues[$key] : $default;
  }
protected function getLocalSessionValue ( $ key , $ default = null ) { $ sessionVarname = get_class ( $ this ) ; $ localValues = $ this -> session -> get ( $ sessionVarname , null ) ; return array_key_exists ( $ key , $ localValues ) ? $ localValues [ $ key ] : $ default ; }
Set the value of a local session variable.
@param $key The key (name) of the session vaiable.
@param $default The default value if the key is not defined (optional, default: _null_)
@return The session var or null if it doesn't exist.
Set the value of a local session variable .