original_string: public function _destroy($pId)
      {
          if (! isset($this->_items[$pId])) {
              $this->_items[$pId] = Agl::getModel(self::DB_COLLECTION);
              $this->_items[$pId]->loadByRealid($pId);
          }
  
          if ($this->_items[$pId]->getId()) {
              $this->_items[$pId]->delete();
          }
  
          return true;
      }
code: public function _destroy($pId)
      {
          if (! isset($this->_items[$pId])) {
              $this->_items[$pId] = Agl::getModel(self::DB_COLLECTION);
              $this->_items[$pId]->loadByRealid($pId);
          }
  
          if ($this->_items[$pId]->getId()) {
              $this->_items[$pId]->delete();
          }
  
          return true;
      }
code_tokens: public function _destroy ( $ pId ) { if ( ! isset ( $ this -> _items [ $ pId ] ) ) { $ this -> _items [ $ pId ] = Agl :: getModel ( self :: DB_COLLECTION ) ; $ this -> _items [ $ pId ] -> loadByRealid ( $ pId ) ; } if ( $ this -> _items [ $ pId ] -> getId ( ) ) { $ this -> _items [ $ pId ] -> delete ( ) ; } return true ; }
docstring: Destroy the session from the database.
  
  @param string $pId Session id
  @return bool
docstring_tokens: Destroy the session from the database .