mirror of
				https://github.com/slawkens/myaac.git
				synced 2025-11-04 09:46:23 +01:00 
			
		
		
		
	* Part 1 Removing closing tags when no HTML or other output comes after the last PHP codeblock. * Further removals * nothing --------- Co-authored-by: slawkens <slawkens@gmail.com>
		
			
				
	
	
		
			75 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			75 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?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 guild ranks.
 | 
						|
 * 
 | 
						|
 * @package POT
 | 
						|
 * @version 0.1.3
 | 
						|
 */
 | 
						|
class OTS_GuildRanks_List extends OTS_Base_List
 | 
						|
{
 | 
						|
/**
 | 
						|
 * @version 0.0.5
 | 
						|
 * @param OTS_GuildRank $guildRank Rank to be deleted.
 | 
						|
 * @deprecated 0.0.5 Use OTS_GuildRank->delete().
 | 
						|
 */
 | 
						|
    public function deleteGuildRank(OTS_GuildRank $guildRank)
 | 
						|
    {
 | 
						|
        $this->db->query('DELETE FROM ' . $this->db->tableName('guild_ranks') . ' WHERE ' . $this->db->fieldName('id') . ' = ' . $guildRank->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 = 'guild_ranks';
 | 
						|
        $this->class = 'GuildRank';
 | 
						|
    }
 | 
						|
 | 
						|
/**
 | 
						|
 * 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()->displayGuildRanksList($this);
 | 
						|
        }
 | 
						|
 | 
						|
        return (string) $this->count();
 | 
						|
    }
 | 
						|
}
 | 
						|
 | 
						|
/**#@-*/
 |