original_string: public function _clean($pMax)
      {
          Agl::validateParams(array(
              'Digit' => $pMax
          ));
  
          $old = time() - $pMax;
  
          $collection = new Collection(self::DB_COLLECTION);
  
          $conditions = new Conditions();
          $conditions->add('access', Conditions::LT, $old);
  
          $collection->load($conditions);
          $collection->deleteItems();
  
          return true;
      }
code: public function _clean($pMax)
      {
          Agl::validateParams(array(
              'Digit' => $pMax
          ));
  
          $old = time() - $pMax;
  
          $collection = new Collection(self::DB_COLLECTION);
  
          $conditions = new Conditions();
          $conditions->add('access', Conditions::LT, $old);
  
          $collection->load($conditions);
          $collection->deleteItems();
  
          return true;
      }
code_tokens: public function _clean ( $ pMax ) { Agl :: validateParams ( array ( 'Digit' => $ pMax ) ) ; $ old = time ( ) - $ pMax ; $ collection = new Collection ( self :: DB_COLLECTION ) ; $ conditions = new Conditions ( ) ; $ conditions -> add ( 'access' , Conditions :: LT , $ old ) ; $ collection -> load ( $ conditions ) ; $ collection -> deleteItems ( ) ; return true ; }
docstring: Clean the database by deleting old sessions.
  
  @param int $pMax Session lifetime
  @return bool
docstring_tokens: Clean the database by deleting old sessions .