API Variables
Primary
Name | Summary |
---|
$page | Class used by all Page objects in ProcessWire. |
$pages | Enables loading and manipulation of Page objects, to and from the database. |
$modules | Loads and manages all modules in ProcessWire. |
$user | The $user API variable is a type of page representing the current user, and the User class is Page type used for all users. |
Users & Access
Name | Summary |
---|
$user | The $user API variable is a type of page representing the current user, and the User class is Page type used for all users. |
$users | Manages all users (User objects) in ProcessWire. |
$permissions | Provides management of all Permission pages independent of users, for access control. |
$roles | Provides management of all Role pages for access control. |
Utilities & Helpers
Name | Summary |
---|
$cache | Provides easy, persistent caching of markup, strings, arrays or PageArray objects. |
$datetime | The $datetime API variable provides helpers for working with dates/times and conversion between formats. |
$files | Helpers for working with files and directories. |
$mail | Provides an API interface to email and WireMail. |
System
Name | Summary |
---|
$config | Holds ProcessWire configuration settings as defined in /wire/config.php and /site/config.php. |
$database | All database operations in ProcessWire are performed via this PDO-style database class. |
$fields | Manages all custom fields in ProcessWire, independently of any Fieldgroup. |
$templates | Manages and provides access to all the Templates. |
$languages | API variable $languages enables access to all Language pages and various helper methods. |
$classLoader | The ProcessWire $classLoader API variable handles autoloading of classes and modules. |
$urls | Maintains lists of file paths or URLs, primarily used by the ProcessWire $config->paths and $urls API variables. |
Functions
View summary of all functions or jump directly to a function by clicking on it below:
Functions-API
cache(), config(), database(), datetime(), fields(), files(), input(), languages(), modules(), page(), pageId(), pages(), paths(), permissions(), region(), roles(), sanitizer(), session(), setting(), templates(), urls(), user(), users(), wire()
Arrays
PageArray(), WireArray(), WireData()
Class-helpers
wireClassExists(), wireClassImplements(), wireClassName(), wireClassNamespace(), wireClassParents(), wireInstanceOf(), wireIsCallable(), wireMethodExists()
Common
wire(), wire404(), wireCount(), wireDate(), wireEmpty(), wireInstance(), wireLen(), wireLength(), wireMail()
Files
wireChmod(), wireCopy(), wireIconMarkupFile(), wireIncludeFile(), wireMkdir(), wireRenderFile(), wireRmdir(), wireSendFile(), wireTempDir(), wireUnzipFile(), wireZipFile()
Markup
wireIconMarkup(), wireIconMarkupFile()
Strings
wireBytesStr(), wireDate(), wirePopulateStringTags(), wireRelativeTimeStr()
Translation
__(), _n(), _x(), wireLangEntityEncode(), wireLangReplacements(), wireLangTranslations()