Overview

Namespaces

  • Budabot
    • Core
      • Modules
    • User
      • Modules
  • None
  • Tyrence
    • Modules

Classes

  • AccessManager
  • AdminManager
  • AOChat
  • AOChatPacket
  • AOChatQueue
  • AOExtMsg
  • AsyncHttp
  • AutoInject
  • BotRunner
  • Budabot
  • BuddylistManager
  • CacheManager
  • CacheResult
  • ClassLoader
  • ColorSettingHandler
  • CommandAlias
  • CommandManager
  • ConfigFile
  • DB
  • DBRow
  • EventLoop
  • EventManager
  • GuildChannelCommandReply
  • GuildManager
  • HelpManager
  • Http
  • HttpRequest
  • LegacyLogger
  • LimitsController
  • LoggerWrapper
  • MMDBParser
  • NumberSettingHandler
  • OptionsSettingHandler
  • PlayerHistory
  • PlayerHistoryManager
  • PlayerManager
  • Preferences
  • PrivateChannelCommandReply
  • PrivateMessageCommandReply
  • Registry
  • SettingHandler
  • SettingManager
  • SettingObject
  • SocketManager
  • SocketNotifier
  • SubcommandManager
  • Text
  • TextSettingHandler
  • Timer
  • TimerEvent
  • TimeSettingHandler
  • Util
  • xml

Interfaces

  • CommandReply

Exceptions

  • InvalidHttpRequest
  • SQLException
  • StopExecutionException

Functions

  • isWindows
  • Overview
  • Namespace
  • Class

Class Util

Namespace: Budabot\Core
Instance
Located at Util.class.php
Methods summary
public
# bytesConvert( $bytes )
public
# unixtimeToReadable( $time, $showSeconds = true )
public
# parseTime( $budatime )
public
# compareVersionNumbers( $ver1, $ver2 )

Takes two version numbers. Returns 1 if the first is greater than the second. Returns -1 if the second is greater than the first. Returns 0 if they are equal.

Takes two version numbers. Returns 1 if the first is greater than the second. Returns -1 if the second is greater than the first. Returns 0 if they are equal.

public
# getProfessionName( $search )

Description:

returns the full profession name given the search string passed in

Name:

getProfessionName
public
# getProfessionAbbreviation( $profession )
public
# verifyFilename( $filename )

Description:

returns true if filename matches budabot naming convention and false otherwise

Name:

verifyFilename
public
# getAbility( $ability, $getFullName = false )
public
# randomArrayValue( $array )
public
# isValidSender( $sender )
public
# genRandomString( $length = 10, $characters = '0123456789abcdefghijklmnopqrstuvwxyz' )
public
# getStackTrace( )
public
# strpos_r( string $haystack, array $needles )

Finds all occurrences of multiple strings in a string and returns them in an array with the key indicating the offset and the value indicating the string found.

Finds all occurrences of multiple strings in a string and returns them in an array with the key indicating the offset and the value indicating the string found.

Parameters

$haystack
the string to search
$needles
an array of strings to search for
public
# date( $unixtime )
public
# endsWith( $string, $test )
public
# startsWith( $haystack, $needle )
public
# stripColors( $msg )
public
# generateQueryFromParams( $params, $column )
public
# mergesort( & $array, $cmp_function )
public
# interpolate( $x1, $x2, $y1, $y2, $x )
public
# mapFilterCombine( $arr, $glue, $func )
public
# getFilesInDirectory( $path )
public
# getDirectoriesInDirectory( $path )
public
# isInteger( $input )
Constants summary
string DATETIME
# "d-M-Y H:i T"
Properties summary
public $chatBot

Inject

#
public $logger

Logger

#
Budabot 4 Docs API documentation generated by ApiGen