Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

PHPMBS.CallbackArgumentCount as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method PHP MBS Tools Plugin 12.4 Yes Yes Yes Yes No
Function: Returns the number of arguments to the callback event.
Notes: Returns 0 on any error.

Feedback, Comments & Corrections

PHPMBS.CallbackArgumentDouble(index as Integer) as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method PHP MBS Tools Plugin 12.4 Yes Yes Yes Yes No
Function: Converts the parameter with the given index to double and returns it.
Notes: Returns 0 on any error.

Feedback, Comments & Corrections

PHPMBS.CallbackArgumentInteger(index as Integer) as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method PHP MBS Tools Plugin 12.4 Yes Yes Yes Yes No
Function: Converts the parameter with the given index to integer and returns it.
Notes: Returns 0 on any error.

Feedback, Comments & Corrections

PHPMBS.CallbackArgumentString(index as Integer) as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method PHP MBS Tools Plugin 12.4 Yes Yes Yes Yes No
Function: Converts the parameter with the given index to string and returns it.
Notes: Returns an empty string on any error.

Feedback, Comments & Corrections

PHPMBS.Constructor
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method PHP MBS Tools Plugin 12.4 Yes Yes Yes Yes No
Function: Initializes the PHP engine.
Example:
const path="php.dll"
call PHPMBS.LoadLibrary(path) // load the dll
dim p as new PHPMBS // initialize

if p.inited then // worked?
msgbox "ok"
end if
Notes: In older plugins this work was done by the method Init.

Feedback, Comments & Corrections

PHPMBS.Execute(code as string) as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method PHP MBS Tools Plugin 12.4 Yes Yes Yes Yes No
Function: Runs php code.
Example:
dim p as PHPMBS

p=new PHPMBS
MsgBox p.Execute("echo ""Hello"";")
Notes: Same as run, but does not call the write event, but return the whole output as one big string.

Feedback, Comments & Corrections

PHPMBS.existsVariable(name as string) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method PHP MBS Tools Plugin 12.4 Yes Yes Yes Yes No
Function: Checks whether variable exists or not.
Notes: getVariable returns "" for variables which don't exist, but your variable may just be an empty string so this function lets you know whether the variable actually exists.

Feedback, Comments & Corrections

PHPMBS.getVariable(name as string) as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method PHP MBS Tools Plugin 12.4 Yes Yes Yes Yes No
Function: Returns value of the variable with the given name.
Notes: Returns an empty string if the variable name is wrong.

Feedback, Comments & Corrections

PHPMBS.Run(code as string) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method PHP MBS Tools Plugin 12.4 Yes Yes Yes Yes No
Function: Runs PHP code.
Example:
dim php as PHPMBS // your php object

if php.run("echo 1+2;") then
// ok
else
// failed
end if
Notes:
Returns true on success.
Returns false on any compilation error or the library is not loaded/available.

You need to wrap your code into exception handlers as the plugin will ignore all exceptions and if you want to find errors, you need to catch them yourself.

Feedback, Comments & Corrections

PHPMBS.setVariable(name as string, value as string)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method PHP MBS Tools Plugin 12.4 Yes Yes Yes Yes No
Function: Sets the variable with the given name to the given value.

Feedback, Comments & Corrections

The items on this page are in the following plugins: MBS Tools Plugin.




Links
MBS Xojo Plugins