Main

Plugins > Useful Functions

These functions and methods are part of the gpEasy core and may be useful in plugin development.

message($message)
Output a message to the user.
gpFiles::Save($file,$contents)
Saves a file to the server.
gpFiles::CheckDir($dir)
Checks for the existence of $dir and creates it if it doesn't exist.
gpFiles::SaveArray($file,$array_name,$array)
Save an array to the server.
common::LoggedIn()
Returns true if the user is logged in.

Debugging

showArray($array)
Similar to php's print_r() function, but better suited for outputting human-readable information in HTML.
Last modified 02:37 Sat, 2 Jan 2010 by Main. Accessed 1,124 times Children What Links Here share Share