Class modX

Description

This is the MODx gateway class.

It can be used to interact with the MODx framework and serves as a front controller for handling requests to the virtual resources managed by the MODx Content Management Framework.

Located in /model/modx/modx.class.php (line 52)

xPDO
   |
   --modX
Class Constant Summary
Variable Summary
Method Summary
 static void protect ()
 static array sanitize ( &$target, [ $patterns = array()], [integer $depth = 3], [ $nesting = 10], array $target)
 static string toQueryString ([ $parameters = array()])
 modX __construct ([string $configPath = ''], [ $options = array()])
 boolean addEventListener (string $event, integer $pluginId)
 void beforeRender ()
 void beforeRequest ()
 mixed changePassword (string $o, string $n)
 void changeWebUserPassword ( $oldPwd,  $newPwd)
 void checkForLocks (integer $id, string $action, string $type)
 boolean checkPreview ()
 boolean checkSession ([string $sessionContext = 'web'])
 boolean checkSiteStatus ()
 string|integer cleanDocumentIdentifier (string|integer $qOrig)
 mixed executeProcessor (array $options)
 void getActiveChildren ([ $id = 0], [ $sort = 'menuindex'], [ $dir = 'ASC'], [ $fields = 'id, pagetitle, description, parent, alias, menutitle, class_key, context_key'])
 void getAllChildren ([ $id = 0], [ $sort = 'menuindex'], [ $dir = 'ASC'], [ $fields = 'id, pagetitle, description, parent, alias, menutitle, class_key, context_key'])
 unknown getAuthenticatedUser ([string $contextKey = ''])
 object A getCacheManager ([ $class = 'cache.xPDOCacheManager'], [ $options = array('path' => XPDO_CORE_PATH, 'ignorePkg' => true)])
 array getChildIds ([integer $id = null], [integer $depth = 10])
 string getChunk (string $chunkName, [ $properties = array ()])
 array getConfig ()
 &$modContext getContext (string $contextKey)
 void getDocGroups ()
 void getDocument ([ $id = 0], [ $fields = "*"], [ $published = 1], [ $deleted = 0])
 void getDocumentChildren ([ $parentid = 0], [ $published = 1], [ $deleted = 0], [ $fields = "*"], [ $where = ''], [ $sort = "menuindex"], [ $dir = "ASC"], [ $limit = ""])
 void getDocumentChildrenTVars ([ $parentid = 0], [ $tvidnames = array()], [ $published = 1], [ $docsort = "menuindex"], [ $docsortdir = "ASC"], [ $tvfields = "*"], [ $tvsort = "rank"], [ $tvsortdir = "ASC"])
 string|integer getDocumentIdentifier (string $method)
 string getDocumentMethod ()
 array getDocumentObject (string $method, string|int $identifier)
 void getDocuments ([ $ids = array()], [ $published = 1], [ $deleted = 0], [ $fields = "*"], [ $where = ''], [ $sort = "menuindex"], [ $dir = "ASC"], [ $limit = ""])
 array getEventMap (string $contextKey)
 void getFullTableName ( $tbl)
 array getKeywords ([integer $id = 0])
 string getLoginUserID ([string $context = ''])
 string getLoginUserName ([string $context = ''])
 string getLoginUserType ()
 string getManagerPath ()
 array getMETATags ([integer $id = 0])
 mixed getPageInfo ([integer $pageid = -1], [integer $active = 1], [string $fields = 'id, pagetitle, description, alias, class_key, context_key'])
 mixed getParent ([integer $pid = -1], [integer $active = 1], [string $fields = 'id, pagetitle, description, alias, parent, class_key, context_key'])
 array getParentIds ([integer $id = null], [integer $height = 10])
 object The getParser ()
 mixed getPlaceholder (string $key)
 boolean getRequest ([$string $class = 'modRequest'], [$path $path = ''])
 boolean getResponse ([$string $class = 'modResponse'], [$path $path = ''])
 integer getSessionState ()
 void getSettings ()
 mixed getTemplateVar ([string $idname = ""], [string $fields = "*"], [ $resourceId = ""], [integer $published = 1], integer $docid)
 mixed getTemplateVarOutput ([ $idnames = array()], [integer $resourceId = ""], [integer $published = 1])
 void getTemplateVars ([ $idnames = array()], [ $fields = "*"], [ $resourceId = ""], [ $published = 1], [ $sort = "tv.rank,tvtpl.rank"], [ $dir = "ASC,ASC"])
 array getTree ([int|array $id = null], [int $depth = 10])
 modUser getUser ([string $contextKey = ''], [boolean $forceLoadSettings = false])
 mixed getUserDocGroups ([boolean $resolveIds = false])
 mixed getUserInfo (integer $uid)
 array getVersionData ()
 mixed getWebUserInfo (integer $uid)
 mixed handleRequest ()
 boolean hasPermission (string $pm)
 void initialize ([string $contextKey = 'web'])
 boolean insideManager ()
 void invokeEvent (string $eventName, [ $params = array ()])
 boolean isBackend ()
 boolean isFrontend ()
 boolean isInitialized ()
 boolean isMemberOfWebGroup ([ $groupNames = array ()])
 void lexicon (string $key, [array $params = array()])
 void logEvent (integer $evtid, integer $type, string $msg, [string $source = 'Parser'])
 modManagerLog logManagerAction (string $action, string $class_key, mixed $item)
 string makeUrl (integer $id, [string $context = ''], [string $args = ''], [mixed $scheme = -1])
 void mergeChunkContent ( $content)
 void mergeDocumentContent ( $content)
 void mergePlaceholderContent ( $content)
 void mergeSettingsContent ( $content)
 void messageQuit ([ $msg = 'unspecified error'], [ $query = ''], [ $is_error = true], [ $nr = ''], [ $file = ''], [ $source = ''], [ $text = ''], [ $line = ''])
 string parseChunk (string $chunkName, array $chunkArr, [string $prefix = '[[+'], [string $suffix = ']]'])
 void putChunk ( $chunkName)
 void regClientCSS (string $src)
 void regClientHTMLBlock (string $html)
 void regClientScript (string $src, [boolean $plaintext = false])
 void regClientStartupHTMLBlock (string $html)
 void regClientStartupScript (string $src, [boolean $plaintext = false])
 array reloadConfig ()
 boolean removeEventListener (string $event)
 mixed runProcessor ([string $action = ''], [array $scriptProperties = array()], [array $options = array()])
 string runSnippet (string $snippetName, [ $params = array ()])
 string sanitizeString (string $str, [array $chars = array('/',"'",'"','(',')',';','>','<')], [string $allowedTags = ''])
 void sendError ([string $type = ''], [array $options = array()])
 void sendErrorPage ([array $options = null])
 void sendForward (integer $id, [string $options = null])
 void sendRedirect (string $url, [array|boolean $options = false], [string $type = ''], [string $responseCode = ''])
 void sendUnauthorizedPage ([array $options = null])
 boolean|int setDebug ([boolean|int $debug = true], [boolean $stopOnNotice = false])
 void setPlaceholder (string $key, mixed $value)
 void setPlaceholders (array|object  $placeholders, [string $namespace = ''])
 void stripTags ( $html, [ $allowed = ''], [ $patterns = array()], [ $depth = 10])
 boolean switchContext (string $contextKey)
 array toPlaceholder (string $key, mixed $value, [string $prefix = ''], [string $separator = '.'], [boolean $restore = false])
 array toPlaceholders (array|object  $subject, [string $prefix = ''], [string $separator = '.'], [boolean $restore = false])
 void unsetPlaceholder (string $key)
 void unsetPlaceholders (string|array $keys)
 mixed userLoggedIn ()
 void _initContext (string $contextKey)
 void _initCulture ()
 void _initEventMap (string $contextKey)
 void _initSession ()
 boolean _loadConfig ()
 void _log ( $level,  $msg, [ $target = ''], [ $def = ''], [ $file = ''], [ $line = ''])
 void _logInRegister ( $register,  $level,  $msg,  $def,  $file,  $line)
 void _postProcess ()
Variables
array $actionMap = null (line 116)
  • var: A map of actions registered to the manager interface.
  • access: public
array $aliasMap = null (line 104)
  • var: A lookup listing of Resource alias values and associated Resource Ids
  • access: public
array $contentTypes = null (line 148)
  • var: Represents the modContentType instances that can be delivered by this modX deployment.
  • access: public
modContext $context = null (line 67)
  • var: The Context represents a unique section of the site which this modX instance is controlling.
  • access: public
array $contexts = array() (line 71)
  • var: An array of secondary contexts loaded on demand.
  • access: public
string $cultureKey = '' (line 134)
  • var: The preferred Culture key for the current request.
  • access: public
DBAPI $db = null (line 221)
  • var: An instance of the DBAPI helper class.
  • deprecated: Aug 28, 2006 For legacy component support only; use xPDO methods inherited by modX class instead. To be removed in 2.1.
  • access: public
mixed $documentContent = null (line 237)
  • deprecated: 2006-09-15 To be removed in 2.1
  • access: public
mixed $documentGenerated = false (line 240)
  • deprecated: 2006-09-15 To be removed in 2.1
  • access: public
mixed $documentIdentifier = null (line 235)
  • deprecated: 2006-09-15 To be removed in 2.1
  • access: public
mixed $documentListing = null (line 234)
  • deprecated: 2006-09-15 To be removed in 2.1
  • access: public
mixed $documentMap = null (line 233)
  • deprecated: 2006-09-15 To be removed in 2.1
  • access: public
mixed $documentMethod = null (line 236)
  • deprecated: 2006-09-15 To be removed in 2.1
  • access: public
mixed $documentObject = null (line 239)
  • deprecated: 2006-09-15 To be removed in 2.1
  • access: public
mixed $documentOutput = null (line 238)
  • deprecated: 2006-09-15 To be removed in 2.1
  • access: public
mixed $dumpSQL = false (line 242)
  • deprecated: 2006-09-15 To be removed in 2.1
  • access: public
array $elementCache = array () (line 120)
  • var: A map of already processed Elements.
  • access: public
object An $errorHandler = null (line 189)
  • var: error_handler for the modX instance.
  • access: public
mixed $Event = null (line 232)
  • deprecated: 2006-09-15 To be removed in 2.1
  • access: public
modEvent $event = null (line 108)
  • var: The current event being handled by modX.
  • access: public
array $eventMap = null (line 112)
  • var: A map of elements registered to specific events.
  • access: public
array $jscripts = array () (line 179)
  • var: An array of javascript content to be inserted into the BODY of an HTML resource.
  • access: public
array $lexicon = null (line 138)
  • var: Represents a localized dictionary of common words and phrases.
  • access: public
mixed $loadedjscripts = array () (line 180)
  • access: public
modParser $parser = null (line 87)
  • var: The modParser registered for this modX instance, responsible for content tag parsing, and loaded only on demand.
  • access: public
array $placeholders = array () (line 125)
  • var: An array of key=> value pairs that can be used by any Resource or Element.
  • access: public
mixed $pluginCache = array() (line 223)
  • access: public
modRequest $request = null (line 76)
  • var: Represents a web request and provides helper methods for dealing with request parameters and other attributes of a request.
  • access: public
modResource $resource = null (line 130)
  • var: An instance of the current modResource controlling the request.
  • access: public
  • usedby: modFieldTag - The modResource instance being processed by modX.
boolean $resourceGenerated = false (line 160)
  • var: Indicates if the resource was generated during this request.
  • access: public
mixed $resourceIdentifier = null (line 152)
  • var: The resource id or alias being requested.
  • access: public
array $resourceListing = null (line 95)
  • var: A listing of site Resources and Context-specific meta data.
  • access: public
array $resourceMap = null (line 99)
  • var: A hierarchy map of Resources.
  • access: public
string $resourceMethod = null (line 156)
  • var: The method to use to locate the Resource, 'id' or 'alias'.
  • access: public
modResponse $response = null (line 82)
  • var: Represents a web response, providing helper methods for managing response header attributes and the body containing the content of the response.
  • access: public
array $sanitizePatterns = array(
'scripts' => '@<script[^>]*?>.*?</script>@si',
'entities' => '@&#(\d+);@e',
'tags' => '@\[\[(.[^\[\[]*?)\]\]@si',
)
(line 193)
  • var: An array of regex patterns regulary cleansed from content.
  • access: public
array $services = array () (line 91)
  • var: An array of supplemental service classes for this modX instance.
  • access: public

Redefinition of:
xPDO::$services
array $sjscripts = array () (line 174)
  • var: An array of javascript content to be inserted into the HEAD of an HTML resource.
  • access: public
mixed $sourceCache = array(
'modChunk' => array(),'modSnippet'=>array())
(line 224)
  • access: public
mixed $stopOnNotice = false (line 241)
  • deprecated: 2006-09-15 To be removed in 2.1
  • access: public
modUser $user = null (line 143)
  • var: The current user object, if one is authenticated for the current request and context.
  • access: public
array $version = null (line 164)
  • var: Version information for this MODx deployment.
  • access: public
string $virtualDir (line 185)
  • var: Stores the virtual path for a request to MODx if the friendly_alias_paths option is enabled.
  • access: public
array $_config = null (line 205)
  • var: A config array that stores the bootstrap settings.
  • access: protected
boolean $_initialized = false (line 169)
  • var: Indicates if modX has been successfully initialized for a modContext.
  • access: protected
mixed $_logSequence = 0 (line 214)
  • access: protected
integer $_sessionState = modX::SESSION_STATE_UNINITIALIZED (line 201)
  • var: An integer representing the session state of modX.
  • access: protected
array $_systemConfig = null (line 209)
  • var: A config array that stores the system-wide settings.
  • access: public
array $_userConfig = array() (line 213)
  • var: A config array that stores the user settings.
  • access: public

Inherited Variables

Inherited from xPDO

xPDO::$cacheManager
xPDO::$cachePath
xPDO::$config
xPDO::$driver
xPDO::$executedQueries
xPDO::$logLevel
xPDO::$logTarget
xPDO::$manager
xPDO::$map
xPDO::$package
xPDO::$packages
xPDO::$pdo
xPDO::$queryTime
xPDO::$startTime
xPDO::$_cacheEnabled
xPDO::$_debug
xPDO::$_escapeCharClose
xPDO::$_escapeCharOpen
Methods
static protect (line 250)

Harden the environment against common security flaws.

  • access: public
static void protect ()
static sanitize (line 275)

Sanitize values of an array using regular expression patterns.

  • return: The sanitized array.
  • access: public
static array sanitize ( &$target, [ $patterns = array()], [integer $depth = 3], [ $nesting = 10], array $target)
  • array $target: The target array to sanitize.
  • array|string $patterns: A regular expression pattern, or array of regular expression patterns to apply to all values of the target.
  • integer $depth: The maximum recursive depth to sanitize if the target contains values that are arrays.
  • array &$target
  • $nesting
static toQueryString (line 320)

Turn an associative array into a valid query string.

  • return: A valid query string representing the parameters.
  • access: public
static string toQueryString ([ $parameters = array()])
  • array $parameters: An associative array of parameters.
Constructor __construct (line 335)

Construct a new modX instance.

  • return: A new modX instance.
  • access: public
modX __construct ([string $configPath = ''], [ $options = array()])
  • string $configPath: An absolute filesystem path to look for the config file.
  • array $options: Options that can be passed to the instance.

Redefinition of:
xPDO::__construct()
The xPDO Constructor.
addEventListener (line 2503)

Add a plugin to the eventMap within the current execution cycle.

  • return: true if the event is successfully added, otherwise false.
  • access: public
boolean addEventListener (string $event, integer $pluginId)
  • string $event: Name of the event.
  • integer $pluginId: Plugin identifier to add to the event.
beforeProcessing (line 2686)

Executed before parser processing of an element.

  • access: public
void beforeProcessing ()
beforeRender (line 2699)

Executed before the response is rendered.

  • access: public
void beforeRender ()
beforeRequest (line 2708)

Executed before the handleRequest function.

  • access: public
void beforeRequest ()
changePassword (line 2187)

Change current user's password.

  • return: true if successful, otherwise return error message.
  • deprecated: 2007-09-17 To be removed in 2.1
  • access: public
mixed changePassword (string $o, string $n)
  • string $o: The old password.
  • string $n: The new password.
changeWebUserPassword (line 2174)

Alias of changePassword().

  • deprecated: 2007-09-17 To be removed in 2.1
  • access: public
void changeWebUserPassword ( $oldPwd,  $newPwd)
  • $oldPwd
  • $newPwd
checkForLocks (line 2629)

Checks for locking on a page.

  • access: public
void checkForLocks (integer $id, string $action, string $type)
  • integer $id: Id of the user checking for a lock.
  • string $action: The action identifying what is locked.
  • string $type: Message indicating the kind of lock being checked.
checkPreview (line 2244)

Checks to see if the preview parameter is set.

  • deprecated: 2007-09-17 TO be removed in 2.1
  • access: public
boolean checkPreview ()
checkSession (line 1056)

Checks to see if the user has a session in the specified context.

  • return: True if the user is valid in the context specified.
  • access: public
boolean checkSession ([string $sessionContext = 'web'])
  • string $sessionContext: The context to test for a session key in.
checkSiteStatus (line 2716)

Determines the current site_status.

  • return: True if the site is online or the user has a valid user session in the 'mgr' context; false otherwise.
  • access: public
boolean checkSiteStatus ()
cleanDocumentIdentifier (line 2203)

Cleans the document request parameter.

  • deprecated: 2007-09-17 TO be removed in 2.1
  • access: public
string|integer cleanDocumentIdentifier (string|integer $qOrig)
  • string|integer $qOrig
executeProcessor (line 1402)

Executes a specific processor. The only argument is an array, which can take the following values:

  • action - The action to take, similar to connector handling.
  • processors_path - If specified, will override the default MODx
processors path.
  • location - A prefix to load processor files from, will prepend to the
action parameter.

  • return: The result of the processor.
  • deprecated: 2.0.5 Will be removed in 2.1.
  • access: public
mixed executeProcessor (array $options)
  • array $options: An array of options.
getActiveChildren (line 1800)

Get all published children documents of the specified document.

  • deprecated: 2007-09-17 To be removed in 2.1
  • access: public
void getActiveChildren ([ $id = 0], [ $sort = 'menuindex'], [ $dir = 'ASC'], [ $fields = 'id, pagetitle, description, parent, alias, menutitle, class_key, context_key'])
  • $id
  • $sort
  • $dir
  • $fields
getAllChildren (line 1774)

Get children of the specified resource without regard to status.

  • deprecated: 2007-09-17 To be removed in 2.1
  • access: public
void getAllChildren ([ $id = 0], [ $sort = 'menuindex'], [ $dir = 'ASC'], [ $fields = 'id, pagetitle, description, parent, alias, menutitle, class_key, context_key'])
  • $id
  • $sort
  • $dir
  • $fields
getAuthenticatedUser (line 1034)

Gets the user authenticated in the specified context.

  • access: public
unknown getAuthenticatedUser ([string $contextKey = ''])
  • string $contextKey: Optional context key; uses current context by default.
getCacheManager (line 492)

Get an extended xPDOCacheManager instance responsible for MODx caching.

  • return: modCacheManager registered for this modX instance.
  • access: public
object A getCacheManager ([ $class = 'cache.xPDOCacheManager'], [ $options = array('path' => XPDO_CORE_PATH, 'ignorePkg' => true)])
  • $class
  • $options

Redefinition of:
xPDO::getCacheManager()
Gets the xPDOCacheManager instance.
getChildIds (line 552)

Gets all of the child resource ids for a given resource.

  • return: An array of all the child resource ids for the specified resource.
  • see: getTree for heirarchical node results
  • access: public
array getChildIds ([integer $id = null], [integer $depth = 10])
  • integer $id: The resource id for the starting node.
  • integer $depth: How many levels max to search for children (default 10).
getChunk (line 1650)

Process and return the output from a Chunk by name.

  • return: The processed output of the Chunk.
  • access: public
string getChunk (string $chunkName, [ $properties = array ()])
  • string $chunkName: The name of the chunk.
  • array $properties: An associative array of properties to process the Chunk with, treated as placeholders within the scope of the Element.
getConfig (line 1096)

Get the configuration for the site.

  • return: An associate array of configuration key/values
  • access: public
array getConfig ()
getContext (line 2561)

Retrieve a context by name without initializing it.

Within a request, contexts retrieved using this function will cache the context data into the modX::$contexts array to avoid loading the same context multiple times.

  • return: A modContext object retrieved from cache or database.
  • access: public
&$modContext getContext (string $contextKey)
  • string $contextKey: The context to retrieve.
getDocGroups (line 2165)

Alias of getUserDocGroups().

  • deprecated: 2007-09-17 To be removed in 2.1
  • access: public
void getDocGroups ()
getDocument (line 1558)

Get persistent data from a specific document.

  • deprecated: 2007-09-17 To be removed in 2.1.
  • access: public
void getDocument ([ $id = 0], [ $fields = "*"], [ $published = 1], [ $deleted = 0])
  • $id
  • $fields
  • $published
  • $deleted
getDocumentChildren (line 1831)

Get all children documents of the specified document.

  • deprecated: 2007-09-17 To be removed in 2.1
  • access: public
void getDocumentChildren ([ $parentid = 0], [ $published = 1], [ $deleted = 0], [ $fields = "*"], [ $where = ''], [ $sort = "menuindex"], [ $dir = "ASC"], [ $limit = ""])
  • $parentid
  • $published
  • $deleted
  • $fields
  • $where
  • $sort
  • $dir
  • $limit
getDocumentChildrenTVars (line 1863)
  • deprecated: 2007-09-17 To be removed in 2.1
  • access: public
void getDocumentChildrenTVars ([ $parentid = 0], [ $tvidnames = array()], [ $published = 1], [ $docsort = "menuindex"], [ $docsortdir = "ASC"], [ $tvfields = "*"], [ $tvsort = "rank"], [ $tvsortdir = "ASC"])
  • $parentid
  • array $tvidnames
  • $published
  • $docsort
  • $docsortdir
  • $tvfields
  • $tvsort
  • $tvsortdir
getDocumentIdentifier (line 2218)

Gets the identifier specifying a requested document.

  • return: The requested document alias or id.
  • deprecated: 2007-09-17 TO be removed in 2.1
  • access: public
string|integer getDocumentIdentifier (string $method)
  • string $method: 'id' or 'alias'.
getDocumentMethod (line 2231)

Gets the method being used to request a document.

  • return: 'id', 'alias', or 'none'.
  • deprecated: 2007-09-17 TO be removed in 2.1
  • access: public
string getDocumentMethod ()
getDocumentObject (line 1318)

Legacy call to set the current documentObject being handled by MODx.

  • return: An associative array containing all the document data.
  • deprecated: 0.9.7 - Jan 18, 2007
  • access: public
array getDocumentObject (string $method, string|int $identifier)
  • string $method: 'id' or 'alias' to indicate the lookup method.
  • string|int $identifier: The identifier for looking up the document.
getDocuments (line 1576)

Get persistent data from a collection of specified documents.

  • deprecated: 2008-10-10 To be removed in 2.1.
  • access: public
void getDocuments ([ $ids = array()], [ $published = 1], [ $deleted = 0], [ $fields = "*"], [ $where = ''], [ $sort = "menuindex"], [ $dir = "ASC"], [ $limit = ""])
  • array $ids
  • $published
  • $deleted
  • $fields
  • $where
  • $sort
  • $dir
  • $limit
getEventMap (line 2585)

Gets a map of events and registered plugins for the specified context.

Service #s:

  1. - Parser Service Events
  2. - Manager Access Events
  3. - Web Access Service Events
  4. - Cache Service Events
  5. - Template Service Events
  6. - User Defined Events

  • return: A map of events and registered plugins for each.
  • access: public
array getEventMap (string $contextKey)
  • string $contextKey: Context identifier.
getFullTableName (line 1766)

Returns the full table name based on db settings.

  • deprecated: Aug 28, 2006 Use getTableName($className) instead. To be removed in 2.1.
  • access: public
void getFullTableName ( $tbl)
  • $tbl
getKeywords (line 2360)

Gets keyword data associated with a document.

  • return: An array of keyword data for the specified document.
  • deprecated: 2009-11-01 To be removed in 2.1
  • access: public
array getKeywords ([integer $id = 0])
  • integer $id: A document id, defaults to current document id.
getLoginUserID (line 1458)

Returns the current user ID, for the current or specified context.

  • return: The ID of the current user.
  • access: public
string getLoginUserID ([string $context = ''])
  • string $context: The key of a valid modContext so you can retrieve the current user ID from a different context than the current.
getLoginUserName (line 1478)

Returns the current user name, for the current or specified context.

  • return: The username of the current user.
  • access: public
string getLoginUserName ([string $context = ''])
  • string $context: The key of a valid modContext so you can retrieve the username from a different context than the current.
getLoginUserType (line 1497)

Returns current login user type - web or manager.

  • return: 'web', 'manager' or an empty string.
  • deprecated: 2007-09-17 To be removed in 1.0.
  • access: public
string getLoginUserType ()
getManagerPath (line 2322)

Gets the URL for the 'mgr' context.

  • return: The base URL of the 'mgr' context relative to the web server document root.
  • deprecated: 2007-09-17 Use MODX_MANAGER_URL or modX->getOption('manager_url')
  • access: public
string getManagerPath ()
getMETATags (line 2383)

Gets META tag data associated with a document.

  • return: An array of META tag data for the specified document.
  • deprecated: 2009-11-01 To be removed in 2.1
  • access: public
array getMETATags ([integer $id = 0])
  • integer $id: A document id, defaults to current document id.
getPageInfo (line 2099)

Gets data from a resource.

  • deprecated: 2007-09-17 To be removed in 2.1
  • access: public
mixed getPageInfo ([integer $pageid = -1], [integer $active = 1], [string $fields = 'id, pagetitle, description, alias, class_key, context_key'])
  • integer $pageid
  • integer $active
  • string $fields
getParent (line 2077)

Gets the parent resource.

  • deprecated: 2007-09-17 To be removed in 2.1
  • access: public
mixed getParent ([integer $pid = -1], [integer $active = 1], [string $fields = 'id, pagetitle, description, alias, parent, class_key, context_key'])
  • integer $pid
  • integer $active
  • string $fields
getParentIds (line 526)

Gets all of the parent resource ids for a given resource.

  • return: An array of all the parent resource ids for the specified resource.
  • access: public
array getParentIds ([integer $id = null], [integer $height = 10])
  • integer $id: The resource id for the starting node.
  • integer $height: How many levels max to search for parents (default 10).
getParser (line 515)

Gets the MODx parser.

Returns an instance of modParser responsible for parsing tags in element content, performing actions, returning content and/or sending other responses in the process.

  • return: modParser for this modX instance.
  • access: public
object The getParser ()
getPlaceholder (line 710)

Get a placeholder value by key.

  • return: The value of the requested placeholder, or an empty string if not located.
  • access: public
  • usedby: modPlaceholderTag - To retrieve the placeholder value.
mixed getPlaceholder (string $key)
  • string $key: The key of the placeholder to a return a value from.
getRegisteredClientScripts (line 1288)

Returns all registered JavaScripts.

  • return: The parsed HTML of the client scripts.
  • access: public
string getRegisteredClientScripts ()
getRegisteredClientStartupScripts (line 1302)

Returns all registered startup CSS, JavaScript, or HTML blocks.

  • return: The parsed HTML of the startup scripts.
  • access: public
string getRegisteredClientStartupScripts ()
getRequest (line 1173)

Attempt to load the request handler class, if not already loaded.

  • return: Returns true if a valid request handler object was loaded on this or any previous call to the function, false otherwise.
  • access: public
boolean getRequest ([$string $class = 'modRequest'], [$path $path = ''])
  • $string $class: The class name of the response class to load. Defaults to modRequest; is ignored if the Setting "modRequest.class" is set.
  • $path $path: The absolute path by which to load the response class from. Defaults to the current MODx model path.
getResponse (line 1193)

Attempt to load the response handler class, if not already loaded.

  • return: Returns true if a valid response handler object was loaded on this or any previous call to the function, false otherwise.
  • access: public
boolean getResponse ([$string $class = 'modResponse'], [$path $path = ''])
  • $string $class: The class name of the response class to load. Defaults to modResponse; is ignored if the Setting "modResponse.class" is set.
  • $path $path: The absolute path by which to load the response class from. Defaults to the current MODx model path.
getSessionState (line 2669)

Returns the state of the SESSION being used by modX.

The possible values for session state are:

modX::SESSION_STATE_UNINITIALIZED modX::SESSION_STATE_UNAVAILABLE modX::SESSION_STATE_EXTERNAL modX::SESSION_STATE_INITIALIZED

  • return: Returns an integer representing the session state.
  • access: public
integer getSessionState ()
getSettings (line 1146)

Alias for getConfig().

  • deprecated: 2007-09-17 To be removed in 2.1
  • access: public
void getSettings ()
getTemplateVar (line 1924)

Returns a single TV record.

  • return: An array of the template variable fields or false.
  • deprecated: 2007-09-17 To be removed in 2.1
  • access: public
mixed getTemplateVar ([string $idname = ""], [string $fields = "*"], [ $resourceId = ""], [integer $published = 1], integer $docid)
  • string $idname: can be an id or name that belongs the template that the current document is using.
  • string $fields
  • integer $docid
  • integer $published: 1 for published, 0 for unpublished.
  • $resourceId
getTemplateVarOutput (line 2022)

Gets an array of template variable data, with processed output.

  • deprecated: 2007-09-17 To be removed in 2.1
  • access: public
mixed getTemplateVarOutput ([ $idnames = array()], [integer $resourceId = ""], [integer $published = 1])
  • string|array $idnames
  • integer $resourceId
  • integer $published
getTemplateVars (line 1941)

Returns an array of TV records.

  • deprecated: 2007-09-17 To be removed in 2.1
  • access: public
void getTemplateVars ([ $idnames = array()], [ $fields = "*"], [ $resourceId = ""], [ $published = 1], [ $sort = "tv.rank,tvtpl.rank"], [ $dir = "ASC,ASC"])
  • string|array $idnames: Can be an id or name that belongs to the template assigned to the current resource.
  • $fields
  • $resourceId
  • $published
  • $sort
  • $dir
getTree (line 579)

Get a site tree from a single or multiple modResource instances.

  • return: An array containing the tree structure.
  • see: getChildIds for linear results
  • access: public
array getTree ([int|array $id = null], [int $depth = 10])
  • int|array $id: A single or multiple modResource ids to build the tree from.
  • int $depth: The maximum depth to build the tree (default 10).
getUser (line 973)

Get the current authenticated User and assigns it to the modX instance.

  • return: The user object authenticated for the request.
  • access: public
modUser getUser ([string $contextKey = ''], [boolean $forceLoadSettings = false])
  • string $contextKey: An optional context to get the user from.
  • boolean $forceLoadSettings: If set to true, will load settings regardless of whether the user has an authenticated context or not.
getUserDocGroups (line 1725)

Returns an array of resource groups that current user is assigned to.

This function will first return the web user doc groups when running from frontend otherwise it will return manager user's resource group.

  • return: An array of document group ids, names, false or empty string.
  • deprecated: 2007-09-17 To be removed in 2.1
  • access: public
mixed getUserDocGroups ([boolean $resolveIds = false])
  • boolean $resolveIds: Set to true to return the resource group names.
getUserInfo (line 2138)

Returns an array of user data.

  • deprecated: 2007-09-17 To be removed in 2.1
  • access: public
mixed getUserInfo (integer $uid)
  • integer $uid
getVersionData (line 1069)

Gets the modX core version data.

  • return: The version data loaded from the config version file.
  • access: public
array getVersionData ()
getWebUserInfo (line 2156)

Returns an array of web user data.

  • deprecated: 2007-09-17 To be removed in 2.1
  • access: public
mixed getWebUserInfo (integer $uid)
  • integer $uid
handleRequest (line 1156)

Initialize, cleanse, and process a request made to a modX site.

  • return: The result of the request handler.
  • access: public
mixed handleRequest ()
hasPermission (line 2258)

Returns true if user has the specified policy permission.

  • access: public
boolean hasPermission (string $pm)
  • string $pm: Permission key to check.
initialize (line 389)

Initializes the modX engine.

This includes preparing the session, pre-loading some common classes and objects, the current site and context settings, extension packages used to override session handling, error handling, or other initialization classes

  • access: public
void initialize ([string $contextKey = 'web'])
  • string $contextKey: Indicates the context to initialize.
insideManager (line 2492)

Indicates if the request is taking place inside the mgr context.

  • return: true if the request is executing in the mgr context.
  • deprecated: 2007-09-15: Use the context key to identify a specific context.
  • access: public
boolean insideManager ()
invokeEvent (line 1335)

Invokes a specified Event with an optional array of parameters.

  • todo: refactor this completely, yuck!!
  • access: public
  • usedby: modX::sendUnauthorizedPage() - The OnPageUnauthorized event is invoked before the unauthorized page is forwarded to.
  • usedby: modX::sendErrorPage() - The OnPageNotFound event is invoked before the error page is forwarded to.
void invokeEvent (string $eventName, [ $params = array ()])
  • string $eventName: Name of an event to invoke.
  • array $params: Optional params provided to the elements registered with an event.
isBackend (line 2472)

Indicates if modX is executing in the default mgr context.

  • return: true if the context is 'mgr'.
  • deprecated: 2007-09-15: Use the context key to identify a specific context.
  • access: public
boolean isBackend ()
isFrontend (line 2482)

Indicates if modX is executing in a context other than mgr.

  • return: true if the context is not 'mgr'.
  • deprecated: 2007-09-15: Use the context key to identify a specific context.
  • access: public
boolean isFrontend ()
isInitialized (line 1514)

Returns whether modX instance has been initialized or not.

  • access: public
boolean isInitialized ()
isMemberOfWebGroup (line 1526)

Determines if the current webuser is a member of the specified webgroups.

  • return: True if the user is a member of any one of the supplied group names, false otherwise.
  • deprecated: 2009-11-01 To be removed in 2.1
  • access: public
boolean isMemberOfWebGroup ([ $groupNames = array ()])
  • array $groupNames: An array of groups to check against.
lexicon (line 2649)

Grabs a processed lexicon string.

  • access: public
void lexicon (string $key, [array $params = array()])
  • string $key
  • array $params
logEvent (line 2272)

Add an a alert message to the system event log

  • deprecated: 2007-09-17 TO be removed in 1.0
  • access: public
void logEvent (integer $evtid, integer $type, string $msg, [string $source = 'Parser'])
  • integer $evtid
  • integer $type: 1 = information, 2 = warning, 3 = error.
  • string $msg
  • string $source: Default is 'Parser'.
logManagerAction (line 2300)

Logs a manager action.

  • return: The newly created modManagerLog object
  • access: public
modManagerLog logManagerAction (string $action, string $class_key, mixed $item)
  • string $action: The action to pull from the lexicon module.
  • string $class_key: The class key that the action is being performed on.
  • mixed $item: The primary key id or array of keys to grab the object with
makeUrl (line 767)

Generates a URL representing a specified resource.

  • return: The URL for the resource.
  • access: public
string makeUrl (integer $id, [string $context = ''], [string $args = ''], [mixed $scheme = -1])
  • integer $id: The id of a resource.
  • string $context: Specifies a context to limit URL generation to.
  • string $args: A query string to append to the generated URL.
  • mixed $scheme: The scheme indicates in what format the URL is generated.
          -1 : (default value) URL is relative to site_url
           0 : see http
           1 : see https
        full : URL is absolute, prepended with site_url from config
         abs : URL is absolute, prepended with base_url from config
        http : URL is absolute, forced to http scheme
       https : URL is absolute, forced to https scheme
mergeChunkContent (line 2426)

Processes chunk content tags.

  • deprecated: 2007-09-17 To be removed in 2.1 - use modParser::processElementTags().
  • access: public
void mergeChunkContent ( $content)
  • $content
mergeDocumentContent (line 2406)

Processes document content tags.

  • deprecated: 2007-09-17 To be removed in 2.1 - use modParser::processElementTags().
  • access: public
void mergeDocumentContent ( $content)
  • $content
mergePlaceholderContent (line 2436)

Processes placeholder content tags.

  • deprecated: 2007-09-17 To be removed in 2.1 - use modParser::processElementTags().
  • access: public
void mergePlaceholderContent ( $content)
  • $content
mergeSettingsContent (line 2416)

Processes document setting tags (and placeholders).

  • deprecated: 2007-09-17 To be removed in 2.1 - use modParser::processElementTags().
  • access: public
void mergeSettingsContent ( $content)
  • $content
messageQuit (line 1607)

Legacy fatal error message.

  • access: public
void messageQuit ([ $msg = 'unspecified error'], [ $query = ''], [ $is_error = true], [ $nr = ''], [ $file = ''], [ $source = ''], [ $text = ''], [ $line = ''])
  • $msg
  • $query
  • $is_error
  • $nr
  • $file
  • $source
  • $text
  • $line
parseChunk (line 1681)

Parse a chunk using an associative array of replacement variables.

  • return: The processed chunk with the placeholders replaced.
  • access: public
string parseChunk (string $chunkName, array $chunkArr, [string $prefix = '[[+'], [string $suffix = ']]'])
  • string $chunkName: The name of the chunk.
  • array $chunkArr: An array of properties to replace in the chunk.
  • string $prefix: The placeholder prefix, defaults to [[+.
  • string $suffix: The placeholder suffix, defaults to ]].
putChunk (line 2520)

Alias of getChunk.

  • deprecated: 9/15/2007 Use getChunk instead; to be removed in 2.1.
  • access: public
void putChunk ( $chunkName)
  • $chunkName
regClientCSS (line 1208)

Register CSS to be injected inside the HEAD tag of a resource.

  • access: public
void regClientCSS (string $src)
  • string $src: The CSS to be injected before the closing HEAD tag in an HTML response.
regClientHTMLBlock (line 1278)

Register HTML to be injected before the closing BODY tag.

  • access: public
void regClientHTMLBlock (string $html)
  • string $html: The HTML to be injected.
regClientScript (line 1251)

Register JavaScript to be injected before the closing BODY tag.

  • access: public
void regClientScript (string $src, [boolean $plaintext = false])
  • string $src: The JavaScript to be injected before the closing BODY tag in an HTML response.
  • boolean $plaintext: Optional param to treat the $src as plaintext rather than assuming it is JavaScript.
regClientStartupHTMLBlock (line 1269)

Register HTML to be injected before the closing HEAD tag.

  • access: public
void regClientStartupHTMLBlock (string $html)
  • string $html: The HTML to be injected.
regClientStartupScript (line 1228)

Register JavaScript to be injected inside the HEAD tag of a resource.

  • access: public
void regClientStartupScript (string $src, [boolean $plaintext = false])
  • string $src: The JavaScript to be injected before the closing HEAD tag of an HTML response.
  • boolean $plaintext: Optional param to treat the $src as plaintext rather than assuming it is JavaScript.
reloadConfig (line 1081)

Reload the config settings.

  • return: An associative array of configuration key/values
  • access: public
array reloadConfig ()
removeAllEventListener (line 2461)

Remove all registered events for the current request.

  • access: public
void removeAllEventListener ()
removeEventListener (line 2449)

Remove an event from the eventMap so it will not be invoked.

  • return: false if the event parameter is not specified or is not present in the eventMap.
  • access: public
boolean removeEventListener (string $event)
  • string $event
runProcessor (line 1422)

Loads and runs a specific processor.

  • return: The result of the processor.
  • access: public
mixed runProcessor ([string $action = ''], [array $scriptProperties = array()], [array $options = array()])
  • string $action: The processor to run, eg: context/update
  • array $scriptProperties: Optional. An array of parameters to pass to the processor.
  • array $options:

    Optional. An array of options for running the processor, such as:

    • processors_path - If specified, will override the default MODx processors path.
    • location - A prefix to load processor files from, will prepend to the action parameter
    (Note: location will be deprecated in future Revolution versions.)

runSnippet (line 1620)

Process and return the output from a PHP snippet by name.

  • return: The processed output of the snippet.
  • access: public
string runSnippet (string $snippetName, [ $params = array ()])
  • string $snippetName: The name of the snippet.
  • array $params: An associative array of properties to pass to the snippet.
sanitizeString (line 308)

Sanitizes a string

  • return: The sanitized string.
  • access: public
string sanitizeString (string $str, [array $chars = array('/',"'",'"','(',')',';','>','<')], [string $allowedTags = ''])
  • string $str: The string to sanitize
  • array $chars: An array of chars to remove
  • string $allowedTags: A list of tags to allow.
sendError (line 806)

Send the user to a type-specific core error page and halt PHP execution.

  • access: public
void sendError ([string $type = ''], [array $options = array()])
  • string $type: The type of error to present.
  • array $options: An array of options to provide for the error file.
sendErrorPage (line 925)

Send the user to a MODx virtual error page.

  • access: public
  • uses: modX::invokeEvent() - The OnPageNotFound event is invoked before the error page is forwarded to.
void sendErrorPage ([array $options = null])
  • array $options: An array of options to provide for the OnPageNotFound event and error page.
sendForward (line 852)

Forwards the request to another resource without changing the URL.

  • access: public
void sendForward (integer $id, [string $options = null])
  • integer $id: The resource identifier.
  • string $options: An array of options for the process.
sendRedirect (line 839)

Sends a redirect to the specified URL using the specified options.

Valid 'type' option values include: REDIRECT_REFRESH Uses the header refresh method REDIRECT_META Sends a a META HTTP-EQUIV="Refresh" tag to the output REDIRECT_HEADER Uses the header location method

REDIRECT_HEADER is the default.

  • access: public
void sendRedirect (string $url, [array|boolean $options = false], [string $type = ''], [string $responseCode = ''])
  • string $url: The URL to redirect the client browser to.
  • array|boolean $options: An array of options for the redirect OR indicates if redirect attempts should be counted and limited to 3 (latter is deprecated usage; use count_attempts in options array).
  • string $type: The type of redirection to attempt (deprecated, use type in options array).
  • string $responseCode: The type of HTTP response code HEADER to send for the redirect (deprecated, use responseCode in options array)
sendUnauthorizedPage (line 949)

Send the user to the MODx unauthorized page.

  • access: public
  • uses: modX::invokeEvent() - The OnPageUnauthorized event is invoked before the unauthorized page is forwarded to.
void sendUnauthorizedPage ([array $options = null])
  • array $options: An array of options to provide for the OnPageUnauthorized event and unauthorized page.
setDebug (line 471)

Sets the debugging features of the modX instance.

  • return: The previous value.
  • access: public
boolean|int setDebug ([boolean|int $debug = true], [boolean $stopOnNotice = false])
  • boolean|int $debug: Boolean or bitwise integer describing the debug state and/or PHP error reporting level.
  • boolean $stopOnNotice: Indicates if processing should stop when encountering PHP errors of type E_NOTICE.

Redefinition of:
xPDO::setDebug()
Sets the debug state for the XPDO connection.
setPlaceholder (line 607)

Sets a placeholder value.

  • access: public
void setPlaceholder (string $key, mixed $value)
  • string $key: The unique string key which identifies the placeholder.
  • mixed $value: The value to set the placeholder to.
setPlaceholders (line 627)

Sets a collection of placeholders stored in an array or as object vars.

An optional namespace parameter can be prepended to each placeholder key in the collection, to isolate the collection of placeholders.

Note that unlike toPlaceholders(), this function does not add separators between the namespace and the placeholder key. Use toPlaceholders() when working with multi-dimensional arrays or objects with variables other than scalars so each level gets delimited by a separator.

  • access: public
void setPlaceholders (array|object  $placeholders, [string $namespace = ''])
  • array|object $placeholders: An array of values or object to set as placeholders.
  • string $namespace: A namespace prefix to prepend to each placeholder key.
stripTags (line 1697)

Strip unwanted HTML and PHP tags and supplied patterns from content.

  • access: public
void stripTags ( $html, [ $allowed = ''], [ $patterns = array()], [ $depth = 10])
  • $html
  • $allowed
  • $patterns
  • $depth
switchContext (line 2536)

Switches the primary Context for the modX instance.

Be aware that switching contexts does not allow custom session handling classes to be loaded. The gateway defines the session handling that is applied to a single request. To create a context with a custom session handler you must create a unique context gateway that initializes that context directly.

  • return: True if the switch was successful, otherwise false.
  • access: public
boolean switchContext (string $contextKey)
  • string $contextKey: The key of the context to switch to.
toPlaceholder (line 686)

Recursively validates and sets placeholders appropriate to the value type passed.

  • return: A multi-dimensional array containing up to two elements: 'keys' which always contains an array of placeholder keys that were set, and optionally, if the restore parameter is true, 'restore' containing an array of placeholder values that were overwritten by the method.
  • access: public
array toPlaceholder (string $key, mixed $value, [string $prefix = ''], [string $separator = '.'], [boolean $restore = false])
  • string $key: The key identifying the value.
  • mixed $value: The value to set.
  • string $prefix: A string prefix to prepend to the key. Recursive calls prepend the parent keys as well.
  • string $separator: A separator placed in between the prefix and the key. Default is a dot or period: '.'.
  • boolean $restore: Set to true if you want overwritten placeholder values returned.
toPlaceholders (line 646)

Sets placeholders from values stored in arrays and objects.

Each recursive level adds to the prefix, building an access path using an optional separator.

  • return: A multi-dimensional array containing up to two elements: 'keys' which always contains an array of placeholder keys that were set, and optionally, if the restore parameter is true, 'restore' containing an array of placeholder values that were overwritten by the method.
  • access: public
array toPlaceholders (array|object  $subject, [string $prefix = ''], [string $separator = '.'], [boolean $restore = false])
  • array|object $subject: An array or object to process.
  • string $prefix: An optional prefix to be prepended to the placeholder keys. Recursive calls prepend the parent keys.
  • string $separator: A separator to place in between the prefixes and keys. Default is a dot or period: '.'.
  • boolean $restore: Set to true if you want overwritten placeholder values returned.
unsetPlaceholder (line 723)

Unset a placeholder value by key.

  • access: public
void unsetPlaceholder (string $key)
  • string $key: The key of the placeholder to unset.
unsetPlaceholders (line 735)

Unset multiple placeholders, either by prefix or an array of keys.

  • access: public
void unsetPlaceholders (string|array $keys)
  • string|array $keys: A string prefix or an array of keys indicating the placeholders to unset.
userLoggedIn (line 2332)

Checks if a user is authenticated and returns array of data if so.

  • return: An array of authenticated user data or false.
  • deprecated: 2007-09-17 To be removed in 2.1
  • access: public
mixed userLoggedIn ()
_initContext (line 2733)

Loads a specified Context.

Merges any context settings with the modX::$config, and performs any other context specific initialization tasks.

  • access: protected
void _initContext (string $contextKey)
  • string $contextKey: A context identifier.
_initCulture (line 2767)

Initializes the culture settings.

  • access: protected
void _initCulture ()
_initErrorHandler (line 2780)

Loads the error handler for this instance.

  • access: protected
void _initErrorHandler ()
_initEventMap (line 2801)

Populates the map of events and registered plugins for each.

  • access: protected
void _initEventMap (string $contextKey)
  • string $contextKey: Context identifier.
_initSession (line 2811)

Loads the session handler and starts the session.

  • access: protected
void _initSession ()
_loadConfig (line 2868)

Loads the modX system configuration settings.

  • return: True if successful.
  • access: protected
boolean _loadConfig ()
_loadExtensionPackages (line 429)

Loads any specified extension packages

  • access: protected
void _loadExtensionPackages ()
_log (line 2894)

Provides modX the ability to use modRegister instances as log targets.

  • access: protected
void _log ( $level,  $msg, [ $target = ''], [ $def = ''], [ $file = ''], [ $line = ''])
  • $level
  • $msg
  • $target
  • $def
  • $file
  • $line

Redefinition of:
xPDO::_log()
Log a message as appropriate for the level and target.
_logInRegister (line 2932)

Provides custom logging functionality for modRegister targets.

  • access: protected
void _logInRegister ( $register,  $level,  $msg,  $def,  $file,  $line)
  • $register
  • $level
  • $msg
  • $def
  • $file
  • $line
_postProcess (line 2957)

Executed after the response is sent and execution is completed.

  • access: public
void _postProcess ()

Inherited Methods

Inherited From xPDO

 xPDO::__construct()
 xPDO::addDerivativeCriteria()
 xPDO::addPackage()
 xPDO::beginTransaction()
 xPDO::call()
 xPDO::commit()
 xPDO::connect()
 xPDO::errorCode()
 xPDO::errorInfo()
 xPDO::escape()
 xPDO::escSplit()
 xPDO::exec()
 xPDO::fromCache()
 xPDO::fromJSON()
 xPDO::getAggregates()
 xPDO::getAncestry()
 xPDO::getAttribute()
 xPDO::getCacheManager()
 xPDO::getCachePath()
 xPDO::getCollection()
 xPDO::getCollectionGraph()
 xPDO::getComposites()
 xPDO::getCount()
 xPDO::getCriteria()
 xPDO::getCriteriaType()
 xPDO::getDebug()
 xPDO::getDebugBacktrace()
 xPDO::getDriver()
 xPDO::getFieldMeta()
 xPDO::getFields()
 xPDO::getFKDefinition()
 xPDO::getIndexMeta()
 xPDO::getIterator()
 xPDO::getLogLevel()
 xPDO::getLogTarget()
 xPDO::getManager()
 xPDO::getMicroTime()
 xPDO::getModelVersion()
 xPDO::getObject()
 xPDO::getObjectGraph()
 xPDO::getObjectLoader()
 xPDO::getOption()
 xPDO::getPackage()
 xPDO::getPDOType()
 xPDO::getPK()
 xPDO::getPKType()
 xPDO::getSelectColumns()
 xPDO::getService()
 xPDO::getTableMeta()
 xPDO::getTableName()
 xPDO::getValidationRules()
 xPDO::lastInsertId()
 xPDO::literal()
 xPDO::loadClass()
 xPDO::log()
 xPDO::newObject()
 xPDO::newQuery()
 xPDO::parseBindings()
 xPDO::parseDSN()
 xPDO::prepare()
 xPDO::query()
 xPDO::quote()
 xPDO::removeCollection()
 xPDO::removeObject()
 xPDO::rollBack()
 xPDO::setAttribute()
 xPDO::setDebug()
 xPDO::setLogLevel()
 xPDO::setLogTarget()
 xPDO::setOption()
 xPDO::setPackage()
 xPDO::toCache()
 xPDO::toJSON()
 xPDO::_getFullTableName()
 xPDO::_getLogLevel()
 xPDO::_loadClass()
 xPDO::_log()
Class Constants

Documentation generated on Fri, 17 Jun 2011 10:04:01 -0600 by phpDocumentor 1.4.3