CoreFollowing you'll find the kryn class. It contains static methods and variables which you can use to manipulate the current page (manipulate generated html, add css/js files), to get informations (like pages, contents, domains, current slot, theme properties) or to check the permission of your own defined ACLs.
Class krynDescription
Variable Summary
string
kryn::$baseUrl
array
kryn::$currentTheme
array
kryn::$domain
array
kryn::$page
string
kryn::$pageHtml
array
kryn::$publicProperties
array
kryn::$slot
array
kryn::$themeProperties
string
kryn::$url
Method Summary
void
kryn::addCss
void
kryn::addHeader
void
kryn::addJs
void
kryn::addMenu
void
kryn::bannUser
bool
kryn::checkUrlAccess
bool
kryn::compareVersion
string
kryn::esc
string
kryn::fileRead
void
kryn::fileWrite
string
kryn::getCache
array
kryn::getDomain
void
kryn::getDomainOfPage
array
kryn::getModuleConfig
string
kryn::getPageContent
array
kryn::getPageContents
string
kryn::getPhpCache
string
kryn::pageUrl
array
kryn::readFolder
string
kryn::readTempFile
void
kryn::redirect
void
kryn::redirectToPage
void
kryn::removeCache
void
kryn::removePhpCache
void
kryn::resetCss
void
kryn::resetJs
void
kryn::resizeImage
void
kryn::sendMail
void
kryn::setCache
void
kryn::setPhpCache
string
kryn::toModRewrite
void
kryn::writeTempFile
Variables
string
kryn::$baseUrl
Defines the current baseUrl (also use in html <header>)
array
kryn::$currentTheme
= array()
Contains the values of the properties from current theme. Template: $currentTheme
array
kryn::$domain
Contains the current domain with all information (as defined in the database system_domain)
array
kryn::$page
Contains the current page with all information
string
kryn::$pageHtml
Contains the complete builded HTML. To change this, you can changed it on the destructor in your extension-class.
array
kryn::$publicProperties
= array()
Contains the values of the public properties from current theme. Template: $publicProperties
array
kryn::$slot
Contains the current slot informations. Items: index, maxItems, isFirst, isLast
array
kryn::$themeProperties
= array()
Contains the values of the properties from current theme. Template: $themeProperties
string
kryn::$url
Contains the current requested URL without http://, but filtered with ^a-Z0-9-/ Methods
kryn::addCss
Adds a new css file to the <header>. Use relative paths from inc/template without a / as start Absolute paths with http:// also possible.
static
void
addCss
(string $pCss)
kryn::addHeader
Adds additional headers.
static
void
addHeader
(string $pHeader)
kryn::addJs
Adds a new javascript file to the <header>. Use relative paths from inc/template without a / as start
static
void
addJs
(string $pJs)
kryn::addMenu
If you want to add own Page-Hierarchy-Item use Kryn::addMenu( $pName, $pUrl ); This array is use for
static
void
addMenu
(string $pName, [string $pUrl = ""])
kryn::bannUser
Banns a user via IP
static
void
bannUser
()
kryn::checkUrlAccess
Checks the access to specified /admin pUrl.
static
bool
checkUrlAccess
(string $pUrl, [array $pUser = false])
kryn::compareVersion
Function to compate two versions with a operator. Max Version: 999.999.999 Min Version: 0.0.1
static
bool
compareVersion
(string $pModuleVersion, string $pOp, string $pVersion)
kryn::esc
Escape ' to \\' to use string in queries which uses ' as string delimiter.
static
string
esc
(string $pString)
kryn::fileRead
Return the content of a file
static
string
fileRead
(string $pPath)
kryn::fileWrite
Writes content to a file
static
void
fileWrite
(string $pPath, string $pContent)
kryn::getCache
Returns the content of the specified cache-key
static
string
getCache
(string $pCode)
kryn::getDomain
Returns domain informations of the specified domain
static
array
getDomain
(unknown_type $pDomainRsn)
kryn::getDomainOfPage
Returns the domain of the specified page
static
void
getDomainOfPage
(integer $pRsn)
kryn::getModuleConfig
Returns the config hash of the specified extension.
static
array
getModuleConfig
(string $pModule)
kryn::getPageContent
Returns generated HTML of $pPageRsn. $pIncludedRes: If true, Kryn includes also the proper css/js files: inc/template/css/_pages/<pPageRsn>.css and inc/template/js/_pages/<pPageRsn>.js
static
string
getPageContent
(integer $pPageRsn, [bool $pIncludeRes = false])
kryn::getPageContents
Returns all contents of the slot of the specified page.
static
array
getPageContents
(integer $pRsn, integer $pBoxId)
kryn::getPhpCache
Gets the content of the specified cache-key
static
string
getPhpCache
(string $pCode)
kryn::pageUrl
Returns the URL of the specified page
static
string
pageUrl
([integer $pRsn = 0], [bool $pDomainRsn = false], [boool $pWithoutHttp = false])
kryn::readFolder
Reads all files of the specified folders.
static
array
readFolder
(string $pPath, [bool $pWithExt = false])
kryn::readTempFile
Return the content of a template file.
static
string
readTempFile
(string $pPath)
kryn::redirect
Redirect the user to specified URL within the system. Relative to the baseUrl.
static
void
redirect
([string $pUrl = ''])
kryn::redirectToPage
Redirect the user to specified page
static
void
redirectToPage
(integer $pRsn)
kryn::removeCache
Removes a value for the specified cache-key
static
void
removeCache
(string $pCode)
kryn::removePhpCache
Removes the content of the specified cache-key
static
void
removePhpCache
(string $pCode)
kryn::resetCss
Resets all css files.
static
void
resetCss
()
kryn::resetJs
Resets all javascript files.
static
void
resetJs
()
kryn::resizeImage
static
void
resizeImage
( $pPath, $pTarget, $pResolution, [ $pFix = false])
kryn::sendMail
Sends a E-Mail in UTF-8
static
void
sendMail
(string $pTo, string $pSubject, string $pBody, [string $pFrom = false])
kryn::setCache
Sets a content to the specified cache-key. Kryn uses MemCache or PHP-Caching
static
void
setCache
(string $pCode, string $pValue)
kryn::setPhpCache
Sets a content to the specified cache-key
static
void
setPhpCache
(string $pCode, string $pValue)
kryn::toModRewrite
Convert a string to a mod-rewrite compatible string.
static
string
toModRewrite
(string $pString)
kryn::writeTempFile
Writes content to a template file
static
void
writeTempFile
(string $pPath, string $pContent)
Inherited MethodsInherited From baseModule baseModule::admin() Documentation generated on Tue, 18 Jan 2011 23:34:38 +0100 by phpDocumentor 1.4.3 |
What is Kryn.cms ?
Administrator
Developer
|