First public release of MyAAC

This commit is contained in:
slawkens1
2017-05-01 20:02:45 +02:00
parent 31172b4883
commit b5362d0654
2016 changed files with 114481 additions and 0 deletions

View File

@@ -0,0 +1,76 @@
<?php
/**#@+
* @since 0.0.4
*/
/**
* @package POT
* @version 0.1.3
* @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 guilds.
*
* @package POT
* @version 0.1.3
*/
class OTS_Guilds_List extends OTS_Base_List
{
/**
* @version 0.0.5
* @param OTS_Guild $guild Guild to be deleted.
* @deprecated 0.0.5 Use OTS_Guild->delete().
*/
public function deleteGuild(OTS_Guild $guild)
{
$this->db->query('DELETE FROM ' . $this->db->tableName('guilds') . ' WHERE ' . $this->db->fieldName('id') . ' = ' . $account->getId() );
}
/**
* Sets list parameters.
*
* <p>
* This method is called at object creation.
* </p>
*
* @version 0.0.5
* @since 0.0.5
*/
public function init()
{
$this->table = 'guilds';
$this->class = 'Guild';
}
/**
* Returns string representation of object.
*
* <p>
* If any display driver is currently loaded then it uses it's method.
* </p>
*
* @version 0.1.3
* @since 0.1.0
* @return string String representation of object.
*/
public function __toString()
{
$ots = POT::getInstance();
// checks if display driver is loaded
if( $ots->isDisplayDriverLoaded() )
{
return $ots->getDisplayDriver()->displayGuildsList($this);
}
return (string) $this->count();
}
}
/**#@-*/
?>