original_string: public function getFlash($index)
      {
          if ( ! $this->isOpened()) {
              $this->start();
          }
          $_oldf = null;
          if (!empty($index) && isset($this->old_flashes[$index])) {
              $_oldf = $this->old_flashes[$index];
              unset($this->old_flashes[$index]);
              return $_oldf;
          }
          return null;
      }
code: public function getFlash($index)
      {
          if ( ! $this->isOpened()) {
              $this->start();
          }
          $_oldf = null;
          if (!empty($index) && isset($this->old_flashes[$index])) {
              $_oldf = $this->old_flashes[$index];
              unset($this->old_flashes[$index]);
              return $_oldf;
          }
          return null;
      }
code_tokens: public function getFlash ( $ index ) { if ( ! $ this -> isOpened ( ) ) { $ this -> start ( ) ; } $ _oldf = null ; if ( ! empty ( $ index ) && isset ( $ this -> old_flashes [ $ index ] ) ) { $ _oldf = $ this -> old_flashes [ $ index ] ; unset ( $ this -> old_flashes [ $ index ] ) ; return $ _oldf ; } return null ; }
docstring: Get a current session flash parameter
  
  @param string $index
  @return mixed
docstring_tokens: Get a current session flash parameter