mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-17 19:23:27 +02:00
First public release of MyAAC
This commit is contained in:
38
system/libs/pot/OTS_AccountBans_List.php
Normal file
38
system/libs/pot/OTS_AccountBans_List.php
Normal file
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package POT
|
||||
* @version 0.1.5
|
||||
* @since 0.1.5
|
||||
* @author Wrzasq <wrzasq@gmail.com>
|
||||
* @copyright 2007 - 2008 (C) by Wrzasq
|
||||
* @license http://www.gnu.org/licenses/lgpl-3.0.txt GNU Lesser General Public License, Version 3
|
||||
*/
|
||||
|
||||
/**
|
||||
* List of account bans.
|
||||
*
|
||||
* @package POT
|
||||
* @version 0.1.5
|
||||
* @since 0.1.5
|
||||
*/
|
||||
class OTS_AccountBans_List extends OTS_Bans_List
|
||||
{
|
||||
/**
|
||||
* Initializes list with account bans filtering.
|
||||
*
|
||||
* @version 0.1.5
|
||||
* @since 0.1.5
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
|
||||
// filters only account bans
|
||||
$filter = new OTS_SQLFilter();
|
||||
$filter->addFilter( new OTS_SQLField('type', 'bans'), POT::BAN_ACCOUNT);
|
||||
$this->setFilter($filter);
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
Reference in New Issue
Block a user