I | |
Init | |
Initialization | |
InitPlugins, otlib | |
Insert, otlib. | |
IntersectionByKey, otlib | |
IntersectionByKeyI, otlib | |
IntersectionByValue, otlib | |
Invalid, otlib. | |
otlib. | InvalidCondition |
InvalidConditions, otlib. | |
IsA | |
IsEmpty, otlib | |
IsValid | |
L | |
License | |
LongUsage, otlib. | |
LTrim, otlib | |
M | |
MakeKeyValues, otlib | |
Max, otlib. | |
max_repeats, otlib. | |
MaxRepeats, otlib. | |
Min, otlib. | |
min_repeats, otlib. | |
MinRepeats, otlib. | |
MySQL, otlib | |
N | |
NoAccess, otlib. | |
NotSpecified, otlib. | |
Numeric Utilities, otlib | |
otlib. | NumParam |
O | |
otlib. | object |
Other Utilities, otlib | |
otlib | |
OTLib Readme | |
P | |
Parameters | |
Parent | |
Parse | |
ParseArgs, otlib | |
ParseKeyValues, otlib | |
otlib. | Plugin |
Plugins | |
Preamble | |
preferred_database_type, otlib | |
Prototype Inheritance | |
R | |
Register, otlib. | |
Remove, otlib. | |
RemoveDuplicateValues, otlib | |
Round, otlib | |
RoundTo, otlib. | |
RTrim, otlib | |
S | |
SetFromList, otlib | |
SetLevel, otlib. | |
SetParameterNum, otlib. | |
SetVersion, otlib. | |
ShortUsage, otlib. | |
Simple Data | |
SplitCommentHeader, otlib | |
SQL Wrapper Functions, wrappers | |
SQLite, otlib | |
Start, otlib. | |
Stop, otlib. | |
StoredExpression, otlib | |
String Utilities, otlib | |
StripComments, otlib | |
T | |
Table Conversion Untilities, otlib | |
Table Utilities | |
TakesRestOfLine, otlib. | |
Terms and Conditions | |
ThrowBadArg, otlib | |
ToBool, otlib | |
TooHigh, otlib. | |
TooLow, otlib. | |
ToString | |
Trim, otlib | |
U | |
UnionByKey, otlib | |
UnionByKeyI, otlib | |
UnionByValue, otlib | |
UntrackedCopy, otlib. | |
User Access, otlib. | |
UserParameters, otlib. | |
Utilities |
Called when a new InvalidCondition object is created by using the prototype as a functor.
function InvalidCondition:Init( ... )
Override this function if you want to run some functionality when the plugin initializes.
function Plugin:Init()
Intended to be called only once by the application-specific implementation after running all plugin files.
function InitPlugins()
Insert (or replace existing with) a new row.
function DataTable:Insert( primary_key, data )
Gets the intersection of two tables by key.
function IntersectionByKey( table_a, table_b, in_place )
Exactly the same as IntersectionByKey except that it uses fori instead of pairs.
function IntersectionByKeyI( table_a, table_b, in_place )
Gets the intersection of two lists by value.
function IntersectionByValue( list_a, list_b, in_place )
Check if a clone is inherited from another.
function IsA( clone, base )
Checks if a table contains any values on any type of key.
function IsEmpty( t )
Checks if the given argument is valid within the context of what’s allowable.
function BaseParam:IsValid( user, arg )
See otlib.BaseParam.IsValid.
function NumParam:IsValid( user, arg )
Used to give information about the usage on this parameter when screen space is not an issue.
function BaseParam:LongUsage( user )
Exactly like Trim except it only trims the left side.
function LTrim( str )
Makes a key values string from a table.
function MakeKeyValues( t )
Sets the maximum number for this argument.
function NumParam:Max( max )
Set the maximum number of times this argument is allowed to repeat.
function BaseParam:MaxRepeats( max_repeats )
Sets the minimum number for this argument.
function NumParam:Min( min )
Set the minimum number of times this argument must repeat.
function BaseParam:MinRepeats( min_repeats )
Gets the parent of a clone.
function Parent( clone )
Parses a string into the appropriate type for this parameter.
function BaseParam:Parse( user, arg )
See otlib.BaseParam.Parse.
function NumParam:Parse( user, arg )
This is similar to Explode with ( str, “%s+” ) except that it will not split up words within quotation marks.
function ParseArgs( args )
Parses a key value formatted string into a table.
function ParseKeyValues( str )
The DatabaseTypes to use by default.
preferred_database_type
Registers a new access object.
function access:Register( tag, ... )
Delets a row from the database.
function DataTable:Remove( primary_key )
Removes any duplicate values from a list.
function RemoveDuplicateValues( list, in_place )
Rounds a number to a given decimal place.
function Round( num, places )
Sets what to round this argument too during Parse.
function NumParam:RoundTo( round_to )
Exactly like Trim except it only trims the right side.
function RTrim( str )
Creates a set from a list.
function SetFromList( list )
Sets the level for this invalid condition, see Denied Levels.
function InvalidCondition:SetLevel( level )
Sets the parameter number the invalid condition occured on.
function InvalidCondition:SetParameterNum( num )
Set the version and version suffix of the plugin.
function Plugin:SetVersion( version, version_suffix )
Used to give information about the usage on this parameter as concisely as possible.
function BaseParam:ShortUsage( user )
Splits a comment header in a string.
function SplitCommentHeader( str, comment_prefix )
Start the plugin.
function Plugin:Start()
Stop the plugin.
function Plugin:Stop()
Creates an object that will store an expression.
function StoredExpression()
Strips comments from a string.
function StripComments( str, line_comment )
Set the argument to take the rest of whatever arguments are available.
function BaseParam:TakesRestOfLine( takes_rest_of_line )
“Throws” an error similar to the lua standard error of “bad argument #x to fn_name (type expected, got type)”.
function ThrowBadArg( argnum, fn_name, expected, data, throw_level )
Converts a boolean, nil, string, or number to a boolean value.
function ToBool( value )
Converts any options on this parameter that would be used for user permissions to a string that can be read in again later using FromString.
function BaseParam:ToString()
See otlib.BaseParam.ToString.
function NumParam:ToString()
Trims leading and tailing whitespace from a string.
function Trim( str )
Merges two tables by key.
function UnionByKey( table_a, table_b, in_place )
Exactly the same as UnionByKey except that it uses fori instead of pairs.
function UnionByKeyI( table_a, table_b, in_place )
Gets the union of two lists by value.
function UnionByValue( list_a, list_b, in_place )
One of the downsides of using DataTable is that data you get out of it (except GetAll) can’t be thrown throw an iterator like pairs because of the way we track changes to the table.
function DataTable:UntrackedCopy( data )