\seekquarry\yioopconfigs

Classes

ConfigureTool Provides a command-line interface way to configure a Yioop Instance.
CreditConfig Class containing methods used to handle payment processing when keyword advertising is enabled.

Constants

. $constant

 . $constant

BASE_DIR

BASE_DIR

BASE_DIR

BASE_DIR

BASE_DIR

BASE_DIR

DEBUG_LEVEL

DEBUG_LEVEL

IS_OWN_WEB_SERVER

IS_OWN_WEB_SERVER

PARENT_DIR

PARENT_DIR

Calculate base directory of script @ignore If you have Yioop! in a separate folder from your web-site You should change BASE_DIR to the location of the Yioop! directory

PROFILE

PROFILE

QUERY_STATISTICS

QUERY_STATISTICS

so can output plans

REDIRECTS_ON

REDIRECTS_ON

Functions

defineMemoryProfile()

defineMemoryProfile() 

Code to determine how much memory current machine has

e()

e(string  $text) 

shorthand for echo

Parameters

string $text

string to send to the current output

initializeBaseUrlAndCurrentWorkingDirectory()

initializeBaseUrlAndCurrentWorkingDirectory() 

nsdefine's the BASE_URL constant for this script if run from the command line as part of index.php HTTP server scrip set the current working directory as well

nsconddefine()

nsconddefine(string  $constant,   $value) 

Define a constant in the Yioop configs namespace (seekquarry\yioop) if it hasn't been defined yet, otherwise do nothing.

Parameters

string $constant

the name of the constant to define

$value

the value to give it

nsdefine()

nsdefine(string  $constant,   $value) 

Define a constant in the Yioop configs namespace (seekquarry\yioop)

Parameters

string $constant

the name of the constant to define

$value

the value to give it

nsdefined()

nsdefined(string  $constant) : boolean

Check if a constant has been defined in the yioop configuration namespace.

Parameters

string $constant

the constant to check if defined

Returns

boolean —

whether or not it was

yioop_error_handler()

yioop_error_handler(integer  $errno, string  $errstr, string  $errfile, integer  $errline, array  $errcontext) 

User defined function to perform error handling for yioop if the error box was checked in the configure menu.

Parameters

integer $errno

the level of the error raised, as an integer

string $errstr

the error message

string $errfile

the filename the error occurred in

integer $errline

the line number of the error

array $errcontext

the context (variables and their values) at the point the error occurred