Function Index
$#! · 0-9 · A · B · C · D · E · F · G · H · I · J · K · L · M · N · O · P · Q · R · S · T · U · V · W · X · Y · Z
A
 AddCommand, otlib.Plugin
 AddHook, otlib.Plugin
 AddKey, otlib.DataTable
 AddListOfKeyValues, otlib.DataTable
 Append, otlib
 Autocomplete
B
 BeginTransaction
C
 CheckAccess, otlib.group
 CheckArg, otlib
 ClearCache, otlib.DataTable
 Clone
 ConvertTo, otlib.DataTable
 Copy, otlib
 CopyI, otlib
 Count, otlib
 CreateDataTable, otlib
 CreatePlugin, otlib
D
 DataEqualsAnyOf, otlib
 DeepCopy, otlib
 Default, otlib.BaseParam
 DifferenceByKey, otlib
 DifferenceByKeyI, otlib
 DifferenceByValue, otlib
 DisableCache, otlib.DataTable
E
 EditDistance, otlib
 Empty
 EnableCache, otlib.DataTable
 EndTransaction
 Escape, otlib
 Execute, wrappers
 Explode, otlib
F
 Fetch, otlib.DataTable
 FileDelete, wrappers
 FileExists, wrappers
 FileRead, wrappers
 FileWrite, wrappers
 FormatAndEscapeData, wrappers
 FromString
G
 GetAll, otlib.DataTable
 GetDefault, otlib.BaseParam
 GetGroup
 GetLevel, otlib.InvalidCondition
 GetMaxRepeats, otlib.BaseParam
 GetMessage, otlib.InvalidCondition
 GetMinRepeats, otlib.BaseParam
 GetParameterNum, otlib.InvalidCondition
 GetPlugins, otlib
 GetTakesRestOfLine, otlib.BaseParam
H
 HasValue, otlib
 HasValueI, otlib
I
 Init
 InitPlugins, otlib
 Insert, otlib.DataTable
 IntersectionByKey, otlib
 IntersectionByKeyI, otlib
 IntersectionByValue, otlib
 IsA
 IsEmpty, otlib
 IsValid
L
 LongUsage, otlib.BaseParam
 LTrim, otlib
function Plugin:AddCommand(console_command,
say_command,
callback,
access)
Adds a command on behalf of this plugin.
function Plugin:AddHook(hook,
callback,
priority)
Adds a hook on behalf of this plugin.
function DataTable:AddKey(key_name,
key_type,
comment)
Adds a key to the data table.
function DataTable:AddListOfKeyValues(list_name,
key_type,
value_type,
comment)
Adds a key to the data table, whose value is going to be a table.
function Append(list_a,
list_b,
in_place)
Appends values with numeric keys from one table to another.
function BaseParam:Autocomplete(user,
str)
Used to give autocomplete information for this parameter.
function NumParam:Autocomplete(user,
cmd,
arg)
See otlib.BaseParam.Autocomplete.
function DataTable:BeginTransaction()
Begins a transaction.
function BeginTransaction(database_type)
If the SQL implementation allows it, start a transaction.
function group:CheckAccess(access,
...)
Checks if a user or group can use an access with specified, possibly parsed arguments.
function CheckArg(argnum,
fn_name,
expected,
data,
throw_level)
Used to check to see if a function argument matches what is expected.
function DataTable:ClearCache()
Clears any cache that may be built up in this datatable.
function Clone(base,
callable,
clone)
Creates a clone of an object.
Exactly the same as otlib.Clone.
function DataTable:ConvertTo(database_type)
Convert the DataTable from using one database type to another.
function Copy(t)
Make a shallow copy of a table.
function CopyI(t)
Exactly the same as Copy except that it uses fori instead of pairs.
function Count(t)
Counts the number of elements in a table using pairs.
function CreateDataTable(table_name,
primary_key_name,
primary_key_type,
comment,
database_type)
Creates a new data table for use.
function CreatePlugin(name,
description,
author)
Creates a plugin by name.
function DataEqualsAnyOf(data,
...)
Checks to see if an argument equals any of the other arguments passed in.
function DeepCopy(t)
Make a deep copy of a table.
function BaseParam:Default(default)
Set the default value of this parameter.
function DifferenceByKey(table_a,
table_b,
in_place)
Gets the difference of two tables by key.
function DifferenceByKeyI(table_a,
table_b,
in_place)
Exactly the same as DifferenceByKey except that it uses fori instead of pairs.
function DifferenceByValue(list_a,
list_b,
in_place)
Gets the difference of two lists by value.
function DataTable:DisableCache()
First clears the cache with ClearCache and disables further caching until re-enabled with EnableCache.
function EditDistance(s,
t,
lim)
Finds the edit distance between two strings or tables.
function Empty(t)
Removes all data from a table.
function DataTable:Empty()
Empties all existing data for this database and clears any caches.
function DataTable:EnableCache()
See DisableCache.
function DataTable:EndTransaction()
See BeginTransaction.
function EndTransaction(database_type)
If the SQL implementation allows it, end a transaction.
function Escape(str)
Makes a string safe for pattern usage, like in string.gsub().
function Execute(database_type,
statement,
key_types)
Execute given statement on the database.
function Explode(str,
separator,
plain,
limit)
Split a string by a string.
function DataTable:Fetch(primary_key)
Fetch a row from the database.
function FileDelete(file_path)
Delete a file or folder.
function FileExists(file_path)
Check to see if a file or folder exists.
function FileRead(file_path)
Read a file.
function FileWrite(file_path,
data)
Write to a file.
function FormatAndEscapeData(data)
Formats and escapes data from lua to be appropriate for use in SQL.
function BaseParam:FromString(str)
Loads in user permissions from a string produced by ToString for this parameter.
function NumParam:FromString(str)
See otlib.BaseParam.FromString and ToString.
function DataTable:GetAll()
Fetchs all rows from the database.
function BaseParam:GetDefault()
Gets the default for this parameter.
function GetGroup(group)
function InvalidCondition:GetLevel()
Gets the level for the invalid condition, see Denied Levels.
function BaseParam:GetMaxRepeats()
Gets the max repeats for this parameter.
function InvalidCondition:GetMessage()
Gets the message for the invalid condition, if one has been created yet.
function BaseParam:GetMinRepeats()
Gets the min repeats for this parameter.
function InvalidCondition:GetParameterNum()
Gets the parameter number the invalid condition occured on, if applicable.
function GetPlugins()
A table of the plugins, indexed by plugin name.
function BaseParam:GetTakesRestOfLine()
Gets whether or not this parameter takes the rest of the line.
function HasValue(t,
value)
Checks for the presence of a value in a table.
function HasValueI(t,
value)
Exactly the same as HasValue except that it uses fori instead of pairs.
function InvalidCondition:Init(...)
Called when a new InvalidCondition object is created by using the prototype as a functor.
function Plugin:Init()
Override this function if you want to run some functionality when the plugin initializes.
function InitPlugins()
Intended to be called only once by the application-specific implementation after running all plugin files.
function DataTable:Insert(primary_key,
data)
Insert (or replace existing with) a new row.
function IntersectionByKey(table_a,
table_b,
in_place)
Gets the intersection of two tables by key.
function IntersectionByKeyI(table_a,
table_b,
in_place)
Exactly the same as IntersectionByKey except that it uses fori instead of pairs.
function IntersectionByValue(list_a,
list_b,
in_place)
Gets the intersection of two lists by value.
function IsA(clone,
base)
Check if a clone is inherited from another.
Exactly the same as otlib.IsA.
function IsEmpty(t)
Checks if a table contains any values on any type of key.
function BaseParam:IsValid(user,
arg)
Checks if the given argument is valid within the context of what’s allowable.
function NumParam:IsValid(user,
arg)
See otlib.BaseParam.IsValid.
function BaseParam:LongUsage(user)
Used to give information about the usage on this parameter when screen space is not an issue.
function LTrim(str)
Exactly like Trim except it only trims the left side.
Close