removeByNames() abstract public method

Removes one or more history entries by name.
abstract public removeByNames ( array $names )
$names array The history entries to remove.
示例#1
0
文件: Base.php 项目: horde/horde
 /**
  * Resets the bad login counter.
  *
  * @param string $userId  The user to reset.
  *
  * @throws Horde_Auth_Exception
  */
 protected function _resetBadLogins($userId)
 {
     if (!$this->_history_api) {
         throw new Horde_Auth_Exception('Unsupported.');
     }
     try {
         $this->_history_api->removeByNames(array($userId . '@logins.failed'));
     } catch (Horde_History_Exception $e) {
         throw new Horde_Auth_Exception($e);
     }
 }
示例#2
0
 /**
  */
 public function deleteLogs(array $msgs)
 {
     $ids = array();
     foreach ($msgs as $val) {
         try {
             $ids[] = $this->_getUniqueHistoryId($val);
         } catch (RuntimeException $e) {
             /* This is an invalid/missing Message-ID. Ignore. */
         }
     }
     $this->_history->removeByNames($ids);
 }
示例#3
0
 /**
  * @see Horde_History::removeByNames()
  */
 public function removeByNames(array $names)
 {
     $this->_history->removeByNames($names);
 }