Add an event listner to a plugin - only for use within the current execution cycle
boolean|int
addEventListener
(string $evtName, string $pluginName)
-
string
$evtName
-
string
$pluginName
Get the number of rows affected in the last db operation
int
affectedRows
(array $rs)
Change current web user's password
string|boolean
changePassword
(string $o, string $n)
Change current web user's password
string|boolean
changeWebUserPassword
(string $oldPwd, string $newPwd)
-
string
$oldPwd
-
string
$newPwd
Check the cache for a specific document/resource
string
checkCache
(int $id)
Checks, if a the result is a preview
boolean
checkPreview
()
Checks the publish state of page
void
checkPublishStatus
()
Check for manager login session
boolean
checkSession
()
check if site is offline
boolean
checkSiteStatus
()
Create a 'clean' document identifier with path information, friendly URL suffix and prefix.
string
cleanDocumentIdentifier
(string $qOrig)
Clear the cache of MODX.
boolean
clearCache
()
Close a database connection
void
dbClose
()
Connect to the database
void
dbConnect
()
Query the database
resource|bool
dbQuery
(string $sql)
-
string
$sql: The SQL statement to execute
Run a plugin
void
evalPlugin
( $___plugin_code, $___params, string $pluginCode, array $params)
-
string
$pluginCode: Code to run
-
array
$params
-
$___plugin_code
-
$___params
Run a snippet
string
evalSnippet
( $___snippet_code, $___params, [ $___name = null], string $snippet, array $params, string $name)
-
string
$snippet: Code to run
-
array
$params
-
string
$name: Snippet name. Optional but advised.
-
$___snippet_code
-
$___params
-
$___name
Run snippets as per the tags in $documentSource and replace the tags with the returned values.
string
evalSnippets
(string $documentSource)
Starts the parsing operations.
- connects to the db
- gets the settings (including system_settings)
- gets the document/resource identifier as in the query string
- finally calls prepareResponse()
void
executeParser
()
Check for and log fatal errors
void
fatalErrorCheck
()
Get a result row
array
fetchRow
(array $rs, [string $mode = 'assoc'])
Gets all active child documents of the specified document, i.e. those which published and not deleted.
array
getActiveChildren
([int $id = 0], [string $sort = 'menuindex'], [string $dir = 'ASC'], [string $fields = 'id, pagetitle, description, parent, alias, menutitle'])
-
int
$id: The Document identifier to start with
-
string
$sort: Sort field Default: menuindex
-
string
$dir: Sort direction, ASC and DESC is possible Default: ASC
-
string
$fields: Default: id, pagetitle, description, parent, alias, menutitle
Gets all child documents of the specified document, including those which are unpublished or deleted.
array
getAllChildren
([int $id = 0], [string $sort = 'menuindex'], [string $dir = 'ASC'], [string $fields = 'id, pagetitle, description, parent, alias, menutitle'])
-
int
$id: The Document identifier to start with
-
string
$sort: Sort field Default: menuindex
-
string
$dir: Sort direction, ASC and DESC is possible Default: ASC
-
string
$fields: Default: id, pagetitle, description, parent, alias, menutitle
Returns the cache relative URL/path with respect to the site root.
string
getCachePath
()
Returns an array of child IDs belonging to the specified parent.
array
getChildIds
(int $id, [int $depth = 10], [array $children = array ()])
-
int
$id: The parent resource/document to start from
-
int
$depth: How many levels deep to search for children, default: 10
-
array
$children: Optional array of docids to merge with the result.
Returns the chunk content for the given chunk name
boolean|string
getChunk
(string $chunkName)
Returns an entry from the config
Note: most code accesses the config array directly and we will continue to support this.
boolean|string
getConfig
([ $name = ''])
Returns an array of document 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 docgroup.
string|array
getDocGroups
()
Returns one document/resource
boolean|string
getDocument
([int $id = 0], [string $fields = "*"], [int $published = 1], [int $deleted = 0])
-
int
$id: docid Default: 0 (no documents)
-
string
$fields: List of fields Default: * (all fields)
-
int
$published: Whether published or unpublished documents are in the result Default: 1
-
int
$deleted: Whether deleted or undeleted documents are in the result Default: 0 (undeleted)
Returns the children of the selected document/folder.
array
getDocumentChildren
([int $parentid = 0], [int $published = 1], [int $deleted = 0], [string $fields = "*"], [string $where = ''], [type $sort = "menuindex"], [string $dir = "ASC"], [string|int $limit = ""])
-
int
$parentid: The parent document identifier Default: 0 (site root)
-
int
$published: Whether published or unpublished documents are in the result Default: 1
-
int
$deleted: Whether deleted or undeleted documents are in the result Default: 0 (undeleted)
-
string
$fields: List of fields Default: * (all fields)
-
string
$where: Where condition in SQL style. Should include a leading 'AND ' Default: Empty string
-
type
$sort: Should be a comma-separated list of field names on which to sort Default: menuindex
-
string
$dir: Sort direction, ASC and DESC is possible Default: ASC
-
string|int
$limit: Should be a valid SQL LIMIT clause without the 'LIMIT' i.e. just include the numbers as a string. Default: Empty string (no limit)
Get the TV outputs of a document's children.
Returns an array where each element represents one child doc and contains the result from getTemplateVarOutput()
Ignores deleted children. Gets all children - there is no where clause available.
boolean|array
getDocumentChildrenTVarOutput
([int $parentid = 0], [ $tvidnames = array ()], [int $published = 1], [string $docsort = "menuindex"], [ASC $docsortdir = "ASC"], array $tvidnames.)
-
int
$parentid: The parent docid Default: 0 (site root)
-
array
$tvidnames.: Which TVs to fetch. In the form expected by getTemplateVarOutput(). Default: Empty array
-
int
$published: Whether published or unpublished documents are in the result Default: 1
-
string
$docsort: How to sort the result array (field) Default: menuindex
-
ASC
$docsortdir: How to sort the result array (direction) Default: ASC
-
$tvidnames
Get the TVs of a document's children. Returns an array where each element represents one child doc.
Ignores deleted children. Gets all children - there is no where clause available.
boolean|array
getDocumentChildrenTVars
([int $parentid = 0], [ $tvidnames = array ()], [int $published = 1], [string $docsort = "menuindex"], [ASC $docsortdir = "ASC"], [string $tvfields = "*"], [string $tvsort = "rank"], [string $tvsortdir = "ASC"], array $tvidnames.)
-
int
$parentid: The parent docid Default: 0 (site root)
-
array
$tvidnames.: Which TVs to fetch - Can relate to the TV ids in the db (array elements should be numeric only) or the TV names (array elements should be names only) Default: Empty array
-
int
$published: Whether published or unpublished documents are in the result Default: 1
-
string
$docsort: How to sort the result array (field) Default: menuindex
-
ASC
$docsortdir: How to sort the result array (direction) Default: ASC
-
string
$tvfields: Fields to fetch from site_tmplvars, default '*' Default: *
-
string
$tvsort: How to sort each element of the result array i.e. how to sort the TVs (field) Default: rank
-
string
$tvsortdir: How to sort each element of the result array i.e. how to sort the TVs (direction) Default: ASC
-
$tvidnames
Returns the document identifier of the current request
int
getDocumentIdentifier
(string $method)
-
string
$method: id and alias are allowed
Get the method by which the current document/resource was requested
string
getDocumentMethod
()
Get all db fields and TVs for a document/resource
array
getDocumentObject
(type $method, type $identifier)
-
type
$method
-
type
$identifier
Returns multiple documents/resources
array|boolean
getDocuments
([array $ids = array ()], [int $published = 1], [int $deleted = 0], [string $fields = "*"], [string $where = ''], [type $sort = "menuindex"], [string $dir = "ASC"], [string|int $limit = ""])
-
array
$ids: Documents to fetch by docid Default: Empty array
-
int
$published: Whether published or unpublished documents are in the result Default: 1
-
int
$deleted: Whether deleted or undeleted documents are in the result Default: 0 (undeleted)
-
string
$fields: List of fields Default: * (all fields)
-
string
$where: Where condition in SQL style. Should include a leading 'AND '. Default: Empty string
-
type
$sort: Should be a comma-separated list of field names on which to sort Default: menuindex
-
string
$dir: Sort direction, ASC and DESC is possible Default: ASC
-
string|int
$limit: Should be a valid SQL LIMIT clause without the 'LIMIT' i.e. just include the numbers as a string. Default: Empty string (no limit)
Get jquery plugin <script> tag as HTML.
Currently used plugin names:
void
getJqueryPluginTag
(string $plugin_name, string $plugin_file, [bool $use_plugin_dir = true], [ $only_once = true])
-
string
$plugin_name: Plugin name, use the name most likely to be used by other scripts (case insensitive)
-
string
$plugin_file: Plugin URL. Relative to plugin directory if $use_plugin_dir is true
-
bool
$use_plugin_dir: See above, defaults to true
-
$only_once
Get jquery <script> tag as HTML.
Intended for use in the backend. Use the above methods for the frontend.
Returns script tag with full absolute URL, so suitable for all manager pages including any without a <base> tag.
void
getJqueryTag
([bool $only_once = true])
-
bool
$only_once: If true, only return the script tag if we haven't already done so
Returns an array with keywords for the current document, or a document with a given docid
array
getKeywords
([int $id = 0])
-
int
$id: The docid, 0 means the current document Default: 0
Returns current user id.
string
getLoginUserID
([ $context = ''], string $context.)
-
string
$context.: Default is an empty string which indicates the method should automatically pick 'web (frontend) or 'mgr' (backend)
-
$context
Returns current user name
string
getLoginUserName
([ $context = ''], string $context.)
-
string
$context.: Default is an empty string which indicates the method should automatically pick 'web (frontend) or 'mgr' (backend)
-
$context
Returns current login user type - web or manager
string
getLoginUserType
()
Returns the manager relative URL/path with respect to the site root.
string
getManagerPath
()
Returns an array with meta tags for the current document, or a document with a given docid.
array
getMETATags
([int $id = 0])
-
int
$id: The document identifier, 0 means the current document Default: 0
Returns the page information as database row, the type of result is defined with the parameter $rowMode
boolean|array
getPageInfo
([int $pageid = -1], [int $active = 1], [string $fields = 'id, pagetitle, description, alias'])
-
int
$pageid: The parent document identifier Default: -1 (no result)
-
int
$active: Should we fetch only published and undeleted documents/resources?
- = yes, 0 = no
Default: 1
-
string
$fields: List of fields Default: id, pagetitle, description, alias
Returns the parent document/resource of the given docid
boolean|array
getParent
([int $pid = -1], [int $active = 1], [string $fields = 'id, pagetitle, description, alias, parent'])
-
int
$pid: The parent docid. If -1, then fetch the current document/resource's parent Default: -1
-
int
$active: Should we fetch only published and undeleted documents/resources?
- = yes, 0 = no
Default: 1
-
string
$fields: List of fields Default: id, pagetitle, description, alias
Returns an array of all parent record IDs for the id passed.
array
getParentIds
(int $id, [int $height = 10])
-
int
$id: Docid to get parents for.
-
int
$height: The maximum number of levels to go up, default 10.
Returns the placeholder value
string
getPlaceholder
(string $name)
-
string
$name: Placeholder name
Returns all registered JavaScripts
string
getRegisteredClientScripts
()
Returns all registered startup scripts
string
getRegisteredClientStartupScripts
()
Get MODx settings including, but not limited to, the system_settings table
void
getSettings
()
Redefinition of:
- Core::getSettings()
- Get system settings and user settings
Returns the id of the current snippet.
int
getSnippetId
()
Returns the name of the current snippet.
string
getSnippetName
()
Modified by Raymond for TV - Orig Modified by Apodigm - DocVars Returns a single site_content field or TV record from the db.
If a site content field the result is an associative array of 'name' and 'value'.
If a TV the result is an array representing a db row including the fields specified in $fields.
boolean
getTemplateVar
([string $idname = ""], [string $fields = "*"], [type $docid = ""], [int $published = 1])
-
string
$idname: Can be a TV id or name
-
string
$fields: Fields to fetch from site_tmplvars. Default: *
-
type
$docid: Docid. Defaults to empty string which indicates the current document.
-
int
$published: Whether published or unpublished documents are in the result Default: 1
Returns an associative array containing TV rendered output values.
boolean|array
getTemplateVarOutput
([type $idnames = array ()], [string $docid = ""], [int $published = 1], [string $sep = ''])
-
type
$idnames: Which TVs to fetch - Can relate to the TV ids in the db (array elements should be numeric only) or the TV names (array elements should be names only) Default: Empty array
-
string
$docid: Docid. Defaults to empty string which indicates the current document.
-
int
$published: Whether published or unpublished documents are in the result Default: 1
-
string
$sep
Returns an array of site_content field fields and/or TV records from the db
Elements representing a site content field consist of an associative array of 'name' and 'value'.
Elements representing a TV consist of an array representing a db row including the fields specified in $fields.
boolean|array
getTemplateVars
([array $idnames = array ()], [string $fields = "*"], [string $docid = ""], [int $published = 1], [string $sort = "rank"], [string $dir = "ASC"])
-
array
$idnames: Which TVs to fetch - Can relate to the TV ids in the db (array elements should be numeric only) or the TV names (array elements should be names only) Default: Empty array
-
string
$fields: Fields to fetch from site_tmplvars. Default: *
-
string
$docid: Docid. Defaults to empty string which indicates the current document.
-
int
$published: Whether published or unpublished documents are in the result Default: 1
-
string
$sort: How to sort the result array (field) Default: rank
-
string
$dir: How to sort the result array (direction) Default: ASC
Returns the ultimate parent of a document
int
getUltimateParentId
(int $id)
-
int
$id: Docid to get ultimate parent.
Get data from phpSniff
array
getUserData
()
Returns an array of document 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 docgroup.
string|array
getUserDocGroups
([boolean $resolveIds = false])
-
boolean
$resolveIds: Set to true to return the document group names Default: false
Returns a user info record for the given manager user
boolean|string
getUserInfo
(int $uid)
Load user settings if user is logged in
void
getUserSettings
()
Redefinition of:
- Core::getUserSettings()
- Get user settings
Returns the ClipperCMS version information as version, branch, release date and full application name.
array
getVersionData
()
Returns a record for the web user
boolean|string
getWebUserInfo
(int $uid)
Returns true if user has the currect permission
int
hasPermission
(string $pm)
-
string
$pm: Permission name
Get the ID generated in the last query
int
insertId
(array $rs)
Returns true, install or interact when inside manager.
string
insideManager
()
Invoke an event.
boolean|array
invokeEvent
(string $evtName, [array $extParams = array ()])
-
string
$evtName
-
array
$extParams: Parameters available to plugins. Each array key will be the PHP variable name, and the array value will be the variable value.
Returns true if we are currently in the manager/backend
boolean
isBackend
()
Returns true if we are currently in the frontend
boolean
isFrontend
()
Returns true if the current web user is a member the specified groups
boolean
isMemberOfWebGroup
([array $groupNames = array ()])
Loads an extension from the extenders folder.
Currently of limited use - can only load the DBAPI and ManagerAPI.
boolean
loadExtension
( $extname, string $extnamegetAllChildren)
-
string
$extnamegetAllChildren
-
$extname
Add an a alert message to the system event log
void
logEvent
(int $evtid, int $type, string $msg, [string $source = 'Parser'])
-
int
$evtid: Event ID
-
int
$type: Types: 1 = information, 2 = warning, 3 = error
-
string
$msg: Message to be logged
-
string
$source: source of the event (module, snippet name, etc.) Default: Parser
Create a friendly URL
string
makeFriendlyURL
(string $pre, string $suff, string $alias)
-
string
$pre
-
string
$suff
-
string
$alias
Returns an ordered or unordered HTML list.
string
makeList
(array $array, [string $ulroot = 'root'], [string $ulprefix = 'sub_'], [string $type = ''], [boolean $ordered = false], [int $tablevel = 0])
-
array
$array
-
string
$ulroot: Default: root
-
string
$ulprefix: Default: sub_
-
string
$type: Default: Empty string
-
boolean
$ordered: Default: false
-
int
$tablevel: Default: 0
Create an URL for the given document identifier. The url prefix and postfix are used, when friendly_url is active.
string
makeUrl
(int $id, [string $alias = ''], [string $args = ''], [string $scheme = ''])
-
int
$id: The document identifier
-
string
$alias: The alias name for the document Default: Empty string
-
string
$args: The paramaters to add to the URL Default: Empty string
-
string
$scheme: With full as valus, the site url configuration is used Default: Empty string
Merge chunks
string
mergeChunkContent
(string $content)
Merge content fields and TVs
string
mergeDocumentContent
(string $template)
Merge meta tags
string
mergeDocumentMETATags
(string $template)
Merge placeholder values
string
mergePlaceholderContent
(string $content)
Merge system settings
string
mergeSettingsContent
(string $template)
Error logging and output.
If error_handling_silent is 0, outputs an error page with detailed informations about the error. Always logs the error using logEvent()
void
messageQuit
([string $msg = 'unspecified error'], [string $query = ''], [boolean $is_error = true], [string $nr = ''], [string $file = ''], [string $source = ''], [string $text = ''], [string $line = ''])
-
string
$msg: Default: unspecified error
-
string
$query: Default: Empty string
-
boolean
$is_error: Default: true
-
string
$nr: Default: Empty string
-
string
$file: Default: Empty string
-
string
$source: Default: Empty string
-
string
$text: Default: Empty string
-
string
$line: Default: Empty string
Redefinition of:
- Core::messageQuit()
- Exits with error message
Error logging and output.
Takes an $element_name parameter (snippet or plugin name) for extra clarity in the System Events page.
If error_handling_silent is 0, outputs an error page with detailed informations about the error. Always logs the error using logEvent()
void
messageQuitFromElement
(string $element_name, [string $msg = 'unspecified error'], [string $query = ''], [boolean $is_error = true], [string $nr = ''], [string $file = ''], [string $source = ''], [string $text = ''], [string $line = ''])
-
string
$element_name: Name of snippet or plugin
-
string
$msg: Default: unspecified error
-
string
$query: Default: Empty string
-
boolean
$is_error: Default: true
-
string
$nr: Default: Empty string
-
string
$file: Default: Empty string
-
string
$source: Default: Empty string
-
string
$text: Default: Empty string
-
string
$line: Default: Empty string
Generate display body for messageQuit()
void
messageQuitText
([string $msg = 'unspecified error'], [string $query = ''], [boolean $is_error = true], [string $nr = ''], [string $file = ''], [string $source = ''], [string $text = ''], [string $line = ''])
-
string
$msg: Default: unspecified error
-
string
$query: Default: Empty string
-
boolean
$is_error: Default: true
-
string
$nr: Default: Empty string
-
string
$file: Default: Empty string
-
string
$source: Default: Empty string
-
string
$text: Default: Empty string
-
string
$line: Default: Empty string
Modifies output
string
modifyOutput
(string $string, string $modifier)
-
string
$string
-
string
$modifier: in the form 'modifier' or 'modifier(argument)'
Final processing and output of the document/resource.
- runs uncached snippets
- add javascript to <head>
- removes unused placeholders
- converts URL tags [~...~] to URLs
void
outputContent
([boolean $noEvent = false])
-
boolean
$noEvent: Default: false
Parse a chunk for placeholders
string
parseChunk
( $chunkName, string $chunkArr, [string $prefix = "[+"], [string $suffix = "+]"], string $chunkname)
-
string
$chunkname: Name of chunk to get from db
-
string
$chunkArr: Array of placeholder names (array keys) and replacements (array values)
-
string
$prefix: Placeholder prefix. Defaults to [+
-
string
$suffix: Placeholder suffix. Defaults to +]
-
$chunkName
Parse a source string.
Handles most MODx tags. Exceptions include:
string
parseDocumentSource
(string $source, [bool $uncached_snippets = false])
-
string
$source
-
bool
$uncached_snippets
Parses a resource property string and returns the result as an array
array
parseProperties
(string $propertyString)
PHP error handler set by http://www.php.net/manual/en/function.set-error-handler.php
Checks the PHP error and calls messageQuit() unless:
- the PHP error level is 0, or
- the PHP error level is 8 (E_NOTICE) and stopOnNotice is false
boolean
phpError
(int $nr, string $text, string $file, string $line)
-
int
$nr: The PHP error level as per http://www.php.net/manual/en/errorfunc.constants.php
-
string
$text: Error message
-
string
$file: File where the error was detected
-
string
$line: Line number within $file
Final jobs.
void
postProcess
()
The next step called at the end of executeParser()
- checks cache
- checks if document/resource is deleted/unpublished
- checks if resource is a weblink and redirects if so
- gets template and parses it
- ensures that postProcess is called when PHP is finished
void
prepareResponse
()
Old method that just calls getChunk()
boolean|string
putChunk
(string $chunkName)
Count the number of rows in a record set
int
recordCount
(resource $rs)
Registers Client-side CSS scripts - these scripts are loaded at inside the <head> tag
void
regClientCSS
(string $src, [string $media = ''])
-
string
$src
-
string
$media: Default: Empty string
Registers Client-side HTML block
void
regClientHTMLBlock
(string $html)
Register jQuery core script
void
regClientJquery
()
Register jquery plugin
void
regClientJqueryPlugin
(string $plugin_name, string $plugin_file, [string $plugin_version = 0], [bool $use_plugin_dir = true])
-
string
$plugin_name: Plugin name, use the name most likely to be used by other scripts (case insensitive)
-
string
$plugin_file: Plugin URL. Relative to plugin directory if $use_plugin_dir is true
-
string
$plugin_version
-
bool
$use_plugin_dir: See above, defaults to true
Registers Client-side JavaScript these scripts are loaded at the end of the page unless $startup is true
string
regClientScript
(string $src, [array $options = array('name'=>'', 'version'=>'0', 'plaintext'=>false)], [boolean $startup = false])
-
string
$src
-
array
$options: Default: 'name'=>'', 'version'=>'0', 'plaintext'=>false
-
boolean
$startup: Default: false
Registers Client-side Startup HTML block
void
regClientStartupHTMLBlock
(string $html)
Registers Startup Client-side JavaScript - these scripts are loaded at inside the <head> tag
void
regClientStartupScript
(string $src, [array $options = array('name'=>'', 'version'=>'0', 'plaintext'=>false)])
-
string
$src
-
array
$options: Default: 'name'=>'', 'version'=>'0', 'plaintext'=>false
Set eval type and name Used by the fatal error handler.
After the eval'd code is run, call unregisterEvalInfo().
void
registerEvalInfo
(string $type, string $name)
-
string
$type
-
string
$name
Remove all event listners - only for use within the current execution cycle
void
removeAllEventListener
()
Remove event listner - only for use within the current execution cycle
boolean
removeEventListener
(string $evtName)
Convert URL tags [~...~] to URLs
string
rewriteUrls
(string $documentSource)
Executes a snippet.
string
runSnippet
(string $snippetName, [array $params = array ()])
-
string
$snippetName
-
array
$params: Default: Empty array
Sends a message to a user's message box.
void
sendAlert
(string $type, string $to, string $from, string $subject, string $msg, [int $private = 0])
-
string
$type: Type of the message
-
string
$to: The recipient of the message
-
string
$from: The sender of the message
-
string
$subject: The subject of the message
-
string
$msg: The message body
-
int
$private: Whether it is a private message, or not Default : 0
Redirect to the error page, by calling sendForward(). This is called for example when the page was not found.
void
sendErrorPage
()
Forward to another page
void
sendForward
(int $id, [string $responseCode = ''])
-
int
$id
-
string
$responseCode
Redirect
boolean
sendRedirect
(string $url, [int $count_attempts = 0], [type $type = ''], [type $responseCode = ''])
-
string
$url
-
int
$count_attempts
-
type
$type
-
type
$responseCode
Redirect to the unauthorized page, for example on calling a page without having the permissions to see this page.
void
sendUnauthorizedPage
()
Sets a value for a placeholder
void
setPlaceholder
(string $name, string $value)
-
string
$name: The name of the placeholder
-
string
$value: The value of the placeholder
Set PHP error handlers
void
set_error_handler
()
Format alias to be URL-safe. Strip invalid characters.
string
stripAlias
(string $alias)
-
string
$alias: Alias to be formatted
Remove unwanted html tags and snippet, settings and tags
string
stripTags
(string $html, [string $allowed = ""])
-
string
$html
-
string
$allowed: Default: Empty string
Returns the timestamp in the date format defined in $this->config['date_format']
string
toDateFormat
([int $timestamp = 0], [string $mode = ''])
-
int
$timestamp: Default: 0
-
string
$mode: Default: Empty string (adds the time as below). Can also be 'dateOnly' for no time or 'formatOnly' to get the date_format string.
For use by toPlaceholders(); For setting an array or object element as placeholder.
void
toPlaceholder
(string $key, object|array $value, [string $prefix = ''])
-
string
$key
-
object|array
$value
-
string
$prefix
Set placeholders en masse via an array or object.
void
toPlaceholders
(object|array $subject, [string $prefix = ''])
-
object|array
$subject
-
string
$prefix
Make a timestamp from a string corresponding to the format in $this->config['date_format']
string
toTimeStamp
(string $str)
Unset eval type and name
void
unregisterEvalInfo
()
Returns user login information, as loggedIn (true or false), internal key, username and usertype (web or manager).
boolean|array
userLoggedIn
()
Displays a javascript alert message in the web browser
void
webAlert
(string $msg, [string $url = ""])
-
string
$msg: Message to show
-
string
$url: URL to redirect to
Inherited Methods
Inherited From Core
Core::getFullTableName()
Core::getMicroTime()
Core::getSettings()
Core::getUserSettings()
Core::messageQuit()