src/DebugBar/DebugBar.php
public function getStackedData($delete = true)
    {
        $http = $this->initStackSession();
        $stackedData = $http->getSessionValue($this->stackSessionNamespace);
        if ($delete) {
            $http->deleteSessionValue($this->stackSessionNamespace);
        }

        $datasets = array();
        if ($this->isDataPersisted() && !$this->stackAlwaysUseSessionStorage) {
            foreach ($stackedData as $id => $data) {
                $datasets[$id] = $this->getStorage()->get($id);
            }
        } else {
            $datasets = $stackedData;
        }

        return $datasets;
    }
public function getStackedData($delete = true)
    {
        $http = $this->initStackSession();
        $stackedData = $http->getSessionValue($this->stackSessionNamespace);
        if ($delete) {
            $http->deleteSessionValue($this->stackSessionNamespace);
        }

        $datasets = array();
        if ($this->isDataPersisted() && !$this->stackAlwaysUseSessionStorage) {
            foreach ($stackedData as $id => $data) {
                $datasets[$id] = $this->getStorage()->get($id);
            }
        } else {
            $datasets = $stackedData;
        }

        return $datasets;
    }
public function getStackedData ( $ delete = true ) { $ http = $ this -> initStackSession ( ) ; $ stackedData = $ http -> getSessionValue ( $ this -> stackSessionNamespace ) ; if ( $ delete ) { $ http -> deleteSessionValue ( $ this -> stackSessionNamespace ) ; } $ datasets = array ( ) ; if ( $ this -> isDataPersisted ( ) && ! $ this -> stackAlwaysUseSessionStorage ) { foreach ( $ stackedData as $ id => $ data ) { $ datasets [ $ id ] = $ this -> getStorage ( ) -> get ( $ id ) ; } } else { $ datasets = $ stackedData ; } return $ datasets ; }
Returns the data stacked in the session

@param boolean $delete Whether to delete the data in the session
@return array
Returns the data stacked in the session