public function _read($pId)
    {
        if (! isset($this->_items[$pId])) {
            $this->_items[$pId] = Agl::getModel(self::DB_COLLECTION);
            $this->_items[$pId]->loadByRealid($pId);
        }

        if ($this->_items[$pId]->getId()) {
            return $this->_items[$pId]->getData();
        }

        return '';
    }
public function _read($pId)
    {
        if (! isset($this->_items[$pId])) {
            $this->_items[$pId] = Agl::getModel(self::DB_COLLECTION);
            $this->_items[$pId]->loadByRealid($pId);
        }

        if ($this->_items[$pId]->getId()) {
            return $this->_items[$pId]->getData();
        }

        return '';
    }
public function _read ( $ pId ) { if ( ! isset ( $ this -> _items [ $ pId ] ) ) { $ this -> _items [ $ pId ] = Agl :: getModel ( self :: DB_COLLECTION ) ; $ this -> _items [ $ pId ] -> loadByRealid ( $ pId ) ; } if ( $ this -> _items [ $ pId ] -> getId ( ) ) { return $ this -> _items [ $ pId ] -> getData ( ) ; } return '' ; }
Read the session identified by the ID parameter and return the session
data.

@param string $pId Session id
@return string
Read the session identified by the ID parameter and return the session data .