Documentation

Application

Table of Contents

Interfaces

UploadCallbackInterface

Classes

ComponentManagerException
Config
ComponentController
This is the superclass for all main Controllers for a Component
InstanceException
This Exception can be used to abort the execution of the Cx object
OfflineInstanceException
Website is offline
InitException
Something unexpected happend during init stage 2 or 3
DefaultEventListener
FormGenerator
ViewGeneratorException
ViewGenerator
Description of ViewGenerator
DataElement
This class provides the magic of being validatable.
FieldsetElement
This class provides the magic of being validatable.
FormElement
This class provides the magic of being validatable.
HtmlElement
This class provides the magic of being validatable.
TextElement
Description of TextElement
Translation
Cx\Core\Locale\Model\Entity\Translation
LocalFile
LocalFileSystem
This class provides the magic of being validatable.
ThumbnailGenerator
Class ThumbnailGenerator
Db
DbUser
MediaType
LoggableListenerException
CoreAttribute
Cx\Core\User\Model\Entity\CoreAttribute
Group
Cx\Core\User\Model\Entity\Group
ProfileTitle
\Cx\Core\User\Model\Entity\ProfileTitle
User
Cx\Core\User\Model\Entity\User
UserAttribute
Cx\Core\User\Model\Entity\UserAttribute
UserAttributeName
Cx\Core\User\Model\Entity\UserAttributeName
UserAttributeValue
Cx\Core\User\Model\Entity\UserAttributeValue
UserProfile
Cx\Core\User\Model\Entity\UserProfile
DummyValidator
Description of DummyValidator
EmailValidator
Description of RegexValidator
RegexValidator
Description of RegexValidator
Validator
Description of Validator
ViewManagerEventListener
Class ViewManagerEventListener
WysiwygTemplate
Cx\Core\Wysiwyg\Model\Entity\WysiwygTemplate
AccessId
Cx\Core_Modules\Access\Model\Entity\AccessId
JobException
GeoIpException
Class GeoIpException
License
Description of License
LicenseCommunicator
Communicates with "the internet" to update a license
LicenseManager
Message
Description of Message
Person
Description of Person
Version
Description of Version
BackendController
Specific BackendController for this Component. Use this to easily create a backend view
ComponentController
Class ComponentController
JsonMediaBrowser
JSON Adapter for Uploader
MediaBrowserException
Class MediaBrowserException
MediaBrowser
Class MediaBrowser
MediaBrowserPageTree
Base class for all kinds of trees such as Sitemaps and Navigation.
MediaBrowserEventListener
Class MediaBrowserEventListener
ComponentController
This is the superclass for all main Controllers for a Component
PresetRepositoryException
ComponentController
This is the superclass for all main Controllers for a Component
JsonUploader
JSON Adapter for Uploader
UploaderException
UploaderExceptions thrown by uploader
UploaderController
Class UploaderController
DefaultUploadCallback
TablePrefixListener
AccessId
DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
Permission
DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
Form
DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
Job
DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
ApiKey
DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
DataAccess
DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
DataAccessApiKey
DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
PdfTemplate
DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
Cookie
DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
Change
DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
Host
DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
HostEntity
DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
IdMapping
DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
Relation
DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
Sync
DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
Log
DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
LogEntry
DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
Node
DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
Page
DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
SystemComponent
DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
Country
DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
DoctrineRepository
DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
JsonDataSource
DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
LegacyDatabaseRepository
DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
YmlRepository
DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
Backend
DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
Language
DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
Locale
DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
Translation
DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
MediaSource
DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
RewriteRule
DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
CoreAttribute
DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
Group
DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
ProfileTitle
DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
User
DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
UserAttribute
DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
UserAttributeName
DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
UserAttributeValue
DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
UserProfile
DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
Frontend
DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
WysiwygTemplate
DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
Category
DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
CategoryName
DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
Event
DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
EventField
DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
Invite
DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
Mail
DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
Registration
DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
RegistrationForm
DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
RegistrationFormField
DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
RegistrationFormFieldName
DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
RegistrationFormFieldValue
DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
Currency
DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
CalendarException
Currency
Cx\Modules\Crm\Model\Entity\Currency

Constants

_MPDF_SYSTEM_TTFONTS  = $this->cx->getCodeBaseLibraryPath() . '/mpdf/ttfonts/'
_MPDF_SYSTEM_TTFONTS_CONFIG  = $this->getDirectory() . '/Controller/clx_config.php'
_MPDF_TTFONTPATH  = $this->cx->getWebsiteDocumentRootPath() . \Cx\Core\Core\Controller\Cx::FOLDER_NAME_MEDIA . '/Pdf/ttfonts/'
_PAYMENT_DEBUG  = 0
Debug mode
_PAYPAL_DEBUG  = 0
Debug mode
ADODB_OUTP  = 'DBG_log_adodb'
BACKEND_PROTECTION  = 1 << 1
CRM_EVENT_ON_ACCOUNT_UPDATED  = 'crm_notify_staff_on_contact_added'
CRM_EVENT_ON_TASK_CREATED  = 'crm_task_assigned'
CRM_EVENT_ON_USER_ACCOUNT_CREATED  = 'crm_user_account_created'
DBG_ADODB  = 1 << 1
DBG_ADODB_CHANGE  = 1 << 3
DBG_ADODB_ERROR  = 1 << 4
DBG_ADODB_TRACE  = 1 << 2
DBG_ALL  = \DBG_PHP | \DBG_DB | \DBG_DB_TRACE | \DBG_DB_ERROR | \DBG_DB_CHANGE | \DBG_LOG_FILE | \DBG_LOG_FIREPHP | \DBG_LOG_MEMORY | \DBG_LOG | \DBG_PROFILE | \DBG_DEBUG
DBG_DB  = \DBG_ADODB | \DBG_DOCTRINE
DBG_DB_CHANGE  = \DBG_ADODB_CHANGE | \DBG_DOCTRINE_CHANGE
DBG_DB_ERROR  = \DBG_ADODB_ERROR | \DBG_DOCTRINE_ERROR
DBG_DB_FIREPHP  = \DBG_PHP | \DBG_DB | \DBG_LOG_FIREPHP
DBG_DB_TRACE  = \DBG_ADODB_TRACE | \DBG_DOCTRINE_TRACE
DBG_DEBUG  = 1 << 14
DBG_DOCTRINE  = 1 << 5
DBG_DOCTRINE_CHANGE  = 1 << 7
DBG_DOCTRINE_ERROR  = 1 << 8
DBG_DOCTRINE_TRACE  = 1 << 6
DBG_ERROR_FIREPHP  = \DBG_PHP | \DBG_DB_ERROR | \DBG_LOG_FIREPHP
DBG_LOG  = 1 << 12
DBG_LOG_FILE  = 1 << 9
DBG_LOG_FIREPHP  = 1 << 10
DBG_LOG_MEMORY  = 1 << 11
DBG_PHP  = 1 << 0
DBG_PROFILE  = 1 << 13
FRONTEND_LANG_ID  = $this->lang
FRONTEND_LANG_ID  = $params['get']['lang']
FRONTEND_LANG_ID  = 1
FRONTEND_LANG_ID  = $lang
FRONTEND_LANG_ID  = 1
FRONTEND_PROTECTION  = 1 << 0
PCLZIP_TEMPORARY_DIR  = $this->cx->getComponent('Session')->getSession()->getTempPath() . '/'
SHOP_CATEGORY_IMAGE_PATH  = \Cx\Core\Core\Controller\Cx::instanciate()->getWebsiteImagesShopPath() . '/'
SHOP_CATEGORY_IMAGE_WEB_PATH  = \Cx\Core\Core\Controller\Cx::instanciate()->getWebsiteImagesShopWebPath() . '/'
SHOP_PSP_URI_DATATRANS  = 'https://payment.datatrans.biz/upp/jsp/upStart.jsp'
Payment gateway URIs
SHOP_PSP_URI_DATATRANS_TEST  = 'https://pilot.datatrans.biz/upp/jsp/upStart.jsp'
SWAGGER_API_HOST  = \Cx\Core\Routing\Url::fromApi('v1', array())->toString()
VALIDATOR_REGEX_EMAIL  = '[a-zäàáâöôüûñéè0-9!\\#\\$\\%\\&\'\\*\\+\\/\\=\\?\\^_\\`\\{\\|\\}\\~-]+(?:\\.[a-zäàáâöôüûñéè0-9!\\#\\$\\%\\&\'\\*\\+\\/\\=\\?\\^_\\`\\{\\|\\}\\~-]+)*@(?:[a-zäàáâöôüûñéè0-9](?:[a-zäàáâöôüûñéè0-9-]*[a-zäàáâöôüûñéè0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?'
Regular Expression for e-mail addresses TKaelin @ 2.0.2: wrote new regex based on http://en.wikipedia.org/wiki/E-mail_address Dave V, @ 2.1.2: re-wrote regex according to http://www.regular-expressions.info/email.html Reto Kohli @ 2.1.4: Fixed e-mail regex for PHP by adding more backslashes for special characters
VALIDATOR_REGEX_EMAIL_JS  = '^' . \VALIDATOR_REGEX_EMAIL . '$'
Regular Expression in javascript for e-mail addresses
VALIDATOR_REGEX_URI  = \VALIDATOR_REGEX_URI_PROTO . '?((([\\wäàáâöôüûñéè\\d-]{1,}\\.)+[a-z]{2,})|((?:(?:25[0-5]|2[0-4]\\d|[01]\\d\\d|\\d?\\d)(?:(\\.?\\d)\\.)) {4}))(?:[\\w\\d]+)?(\\/[\\w\\d\\-\\.\\?\\,\'\\/\\\\+\\&\\%\\$\\#\\=\\~]*)?'
Regular Expression for URIs
VALIDATOR_REGEX_URI_JS  = '^' . \VALIDATOR_REGEX_URI . '$'
Regular Expression in javascript for URIs
VALIDATOR_REGEX_URI_PROTO  = '(?:(?:ht|f)tps?\\:\\/\\/)'
Regular Expression for URI protocols

Functions

contrexx_isCoreModule()  : bool
Checks if a certain module, specified by param $moduleName, is a core module.
contrexx_isModuleActive()  : bool
Checks if a certain module, specified by param $moduleName, is active.
contrexx_isModuleInstalled()  : bool
Checks if a certain module, specified by param $moduleName, is installed.
getPaging()  : string
OBSOLETE Use the {@see Paging::get()} method instead.
init()  : Cx
Wrapper for new \Cx\Core\Core\Controller\Cx()
cxAdodbPdoConnectionFactory()  : CustomAdodbPdo
Factory callback for AdoDB NewConnection
contrexx_strip_tags()  : string
Wrapper for strip_tags() that complies with gpc_magic_quotes
contrexx_addslashes()  : string
Wrapper for addslashes() that complies with gpc_magic_quotes
contrexx_stripslashes()  : string
Wrapper for stripslashes() that complies with gpc_magic_quotes
contrexx_stripslashes_recursive()  : mixed
Processes the argument like {@see contrexx_stripslashes()}, but also handles arrays
preg_match_replace()  : string
Convenient match-and-replace-in-one function
checkForSpider()  : bool
Checks whether the request comes from a known spider
contrexx_raw2xhtml()  : mixed
Encodes raw strings or arrays thereof for use with [X]HTML
contrexx_input2raw()  : mixed
Unescapes data from any request and returns a raw string or an array thereof.
contrexx_input2int()  : mixed
Ensures that data from any request is limited to integer values
contrexx_input2float()  : mixed
Ensures that data from any request is limited to float values
contrexx_input2db()  : mixed
Unescapes data from any request and adds slashes for insertion into the database
contrexx_input2xhtml()  : mixed
Unescapes data from any request and encodes it for use with [X]HTML
contrexx_raw2db()  : mixed
Adds slashes to the given raw string or array thereof for insertion into the database.
contrexx_raw2xml()  : mixed
Encodes a raw string or array thereof for use with XML
contrexx_raw2encodedUrl()  : mixed
Encodes a raw string or array thereof for use as a href or src attribute value.
contrexx_remove_script_tags()  : mixed
Removes script tags and their content from the given string or array thereof
contrexx_xhtml2raw()  : mixed
Decode [X]HTML entities to raw plaintext string
contrexx_html2plaintext()  : mixed
Extracts the plaintext out of a html code
getCustomFonts()  : void
Load custom fonts for PDF generation
DBG_log_adodb()  : mixed
safeNew()  : mixed

Constants

_MPDF_SYSTEM_TTFONTS

public mixed _MPDF_SYSTEM_TTFONTS = $this->cx->getCodeBaseLibraryPath() . '/mpdf/ttfonts/'

_MPDF_SYSTEM_TTFONTS_CONFIG

public mixed _MPDF_SYSTEM_TTFONTS_CONFIG = $this->getDirectory() . '/Controller/clx_config.php'

_MPDF_TTFONTPATH

public mixed _MPDF_TTFONTPATH = $this->cx->getWebsiteDocumentRootPath() . \Cx\Core\Core\Controller\Cx::FOLDER_NAME_MEDIA . '/Pdf/ttfonts/'

_PAYPAL_DEBUG

Debug mode

public mixed _PAYPAL_DEBUG = 0
Tags
internal

Debug modes: 0 No debugging, normal operation 1 Use PayPal Sandbox, create log files 2 Use test suite, create log files

ADODB_OUTP

public mixed ADODB_OUTP = 'DBG_log_adodb'

BACKEND_PROTECTION

public mixed BACKEND_PROTECTION = 1 << 1

CRM_EVENT_ON_ACCOUNT_UPDATED

public mixed CRM_EVENT_ON_ACCOUNT_UPDATED = 'crm_notify_staff_on_contact_added'

CRM_EVENT_ON_TASK_CREATED

public mixed CRM_EVENT_ON_TASK_CREATED = 'crm_task_assigned'

CRM_EVENT_ON_USER_ACCOUNT_CREATED

public mixed CRM_EVENT_ON_USER_ACCOUNT_CREATED = 'crm_user_account_created'

DBG_ADODB

public mixed DBG_ADODB = 1 << 1

DBG_ADODB_CHANGE

public mixed DBG_ADODB_CHANGE = 1 << 3

DBG_ADODB_ERROR

public mixed DBG_ADODB_ERROR = 1 << 4

DBG_ADODB_TRACE

public mixed DBG_ADODB_TRACE = 1 << 2

DBG_ALL

public mixed DBG_ALL = \DBG_PHP | \DBG_DB | \DBG_DB_TRACE | \DBG_DB_ERROR | \DBG_DB_CHANGE | \DBG_LOG_FILE | \DBG_LOG_FIREPHP | \DBG_LOG_MEMORY | \DBG_LOG | \DBG_PROFILE | \DBG_DEBUG

DBG_DB

public mixed DBG_DB = \DBG_ADODB | \DBG_DOCTRINE

DBG_DB_CHANGE

public mixed DBG_DB_CHANGE = \DBG_ADODB_CHANGE | \DBG_DOCTRINE_CHANGE

DBG_DB_ERROR

public mixed DBG_DB_ERROR = \DBG_ADODB_ERROR | \DBG_DOCTRINE_ERROR

DBG_DB_FIREPHP

public mixed DBG_DB_FIREPHP = \DBG_PHP | \DBG_DB | \DBG_LOG_FIREPHP

DBG_DB_TRACE

public mixed DBG_DB_TRACE = \DBG_ADODB_TRACE | \DBG_DOCTRINE_TRACE

DBG_DEBUG

public mixed DBG_DEBUG = 1 << 14

DBG_DOCTRINE

public mixed DBG_DOCTRINE = 1 << 5

DBG_DOCTRINE_CHANGE

public mixed DBG_DOCTRINE_CHANGE = 1 << 7

DBG_DOCTRINE_ERROR

public mixed DBG_DOCTRINE_ERROR = 1 << 8

DBG_DOCTRINE_TRACE

public mixed DBG_DOCTRINE_TRACE = 1 << 6

DBG_ERROR_FIREPHP

public mixed DBG_ERROR_FIREPHP = \DBG_PHP | \DBG_DB_ERROR | \DBG_LOG_FIREPHP

DBG_LOG

public mixed DBG_LOG = 1 << 12

DBG_LOG_FILE

public mixed DBG_LOG_FILE = 1 << 9

DBG_LOG_FIREPHP

public mixed DBG_LOG_FIREPHP = 1 << 10

DBG_LOG_MEMORY

public mixed DBG_LOG_MEMORY = 1 << 11

DBG_PHP

public mixed DBG_PHP = 1 << 0

DBG_PROFILE

public mixed DBG_PROFILE = 1 << 13

FRONTEND_PROTECTION

public mixed FRONTEND_PROTECTION = 1 << 0

PCLZIP_TEMPORARY_DIR

public mixed PCLZIP_TEMPORARY_DIR = $this->cx->getComponent('Session')->getSession()->getTempPath() . '/'

SHOP_CATEGORY_IMAGE_PATH

public mixed SHOP_CATEGORY_IMAGE_PATH = \Cx\Core\Core\Controller\Cx::instanciate()->getWebsiteImagesShopPath() . '/'

SHOP_CATEGORY_IMAGE_WEB_PATH

public mixed SHOP_CATEGORY_IMAGE_WEB_PATH = \Cx\Core\Core\Controller\Cx::instanciate()->getWebsiteImagesShopWebPath() . '/'

SHOP_PSP_URI_DATATRANS

Payment gateway URIs

public mixed SHOP_PSP_URI_DATATRANS = 'https://payment.datatrans.biz/upp/jsp/upStart.jsp'

Live Service URIs: UTF-8 encoding: https://payment.datatrans.biz/upp/jsp/upStart.jsp ISO encoding: https://payment.datatrans.biz/upp/jsp/upStartIso.jsp

Service URIs for testing: UTF-8 encoding: https://pilot.datatrans.biz/upp/jsp/upStart.jsp ISO encoding: https://pilot.datatrans.biz/upp/jsp/upStartIso.jsp

Tags
see
checkOut()
see
success()

SHOP_PSP_URI_DATATRANS_TEST

public mixed SHOP_PSP_URI_DATATRANS_TEST = 'https://pilot.datatrans.biz/upp/jsp/upStart.jsp'

VALIDATOR_REGEX_EMAIL

Regular Expression for e-mail addresses TKaelin @ 2.0.2: wrote new regex based on http://en.wikipedia.org/wiki/E-mail_address Dave V, @ 2.1.2: re-wrote regex according to http://www.regular-expressions.info/email.html Reto Kohli @ 2.1.4: Fixed e-mail regex for PHP by adding more backslashes for special characters

public mixed VALIDATOR_REGEX_EMAIL = '[a-zäàáâöôüûñéè0-9!\\#\\$\\%\\&\'\\*\\+\\/\\=\\?\\^_\\`\\{\\|\\}\\~-]+(?:\\.[a-zäàáâöôüûñéè0-9!\\#\\$\\%\\&\'\\*\\+\\/\\=\\?\\^_\\`\\{\\|\\}\\~-]+)*@(?:[a-zäàáâöôüûñéè0-9](?:[a-zäàáâöôüûñéè0-9-]*[a-zäàáâöôüûñéè0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?'
Tags
since
2.0.0
deprecated
3.1.1

VALIDATOR_REGEX_EMAIL_JS

Regular Expression in javascript for e-mail addresses

public mixed VALIDATOR_REGEX_EMAIL_JS = '^' . \VALIDATOR_REGEX_EMAIL . '$'
Tags
author

Michael Räss info@cloudrexx.com

since
2.2.6
deprecated
3.1.1

VALIDATOR_REGEX_URI

Regular Expression for URIs

public mixed VALIDATOR_REGEX_URI = \VALIDATOR_REGEX_URI_PROTO . '?((([\\wäàáâöôüûñéè\\d-]{1,}\\.)+[a-z]{2,})|((?:(?:25[0-5]|2[0-4]\\d|[01]\\d\\d|\\d?\\d)(?:(\\.?\\d)\\.)) {4}))(?:[\\w\\d]+)?(\\/[\\w\\d\\-\\.\\?\\,\'\\/\\\\+\\&\\%\\$\\#\\=\\~]*)?'
Tags
author

Reto Kohli reto.kohli@comvation.com

since
2.2.0
deprecated
3.1.1

VALIDATOR_REGEX_URI_JS

Regular Expression in javascript for URIs

public mixed VALIDATOR_REGEX_URI_JS = '^' . \VALIDATOR_REGEX_URI . '$'
Tags
author

Michael Räss info@cloudrexx.com

since
2.2.6
deprecated
3.1.1

VALIDATOR_REGEX_URI_PROTO

Regular Expression for URI protocols

public mixed VALIDATOR_REGEX_URI_PROTO = '(?:(?:ht|f)tps?\\:\\/\\/)'

Known protocols include HTTP, HTTPS, FTP, and FTPS.

Tags
author

Reto Kohli reto.kohli@comvation.com

since
2.2.0
deprecated
3.1.1

Functions

contrexx_isCoreModule()

Checks if a certain module, specified by param $moduleName, is a core module.

contrexx_isCoreModule(string $moduleName) : bool
Parameters
$moduleName : string
Tags
deprecated
Return values
bool

contrexx_isModuleActive()

Checks if a certain module, specified by param $moduleName, is active.

contrexx_isModuleActive(string $moduleName) : bool
Parameters
$moduleName : string
Tags
deprecated
Return values
bool

contrexx_isModuleInstalled()

Checks if a certain module, specified by param $moduleName, is installed.

contrexx_isModuleInstalled(string $moduleName) : bool
Parameters
$moduleName : string
Tags
deprecated
Return values
bool

getPaging()

OBSOLETE Use the {@see Paging::get()} method instead.

getPaging(int $numof_rows, int $pos, string $uri_parameter, string $paging_text[, bool $showeverytime = false ][, int $results_per_page = null ]) : string

Returs a string representing the complete paging HTML code for the current page. Note that the old $pos parameter is obsolete as well, see getPosition().

Parameters
$numof_rows : int

The number of rows available

$pos : int

The offset from the first row

$uri_parameter : string
$paging_text : string
$showeverytime : bool = false
$results_per_page : int = null
Tags
copyright

CLOUDREXX CMS - CLOUDREXX AG

author

Cloudrexx Development Team info@cloudrexx.com

access

public

version
1.0.0
global

array $_CONFIG Configuration

global

array $_CORELANG Core language

deprecated
todo

Change the system to use the new, static class method, then remove this one.

Return values
string

Result

init()

Wrapper for new \Cx\Core\Core\Controller\Cx()

init([string $mode = null ][, mixed $checkInstallationStatus = true ]) : Cx

This is necessary, because we cannot use namespaces in index.php in order to catch errors with PHP versions prior to 5.3

Parameters
$mode : string = null

(optional) One of 'frontend', 'backend', 'cli', 'minimal'

$checkInstallationStatus : mixed = true
Return values
Cx

Instance of Cloudrexx

cxAdodbPdoConnectionFactory()

Factory callback for AdoDB NewConnection

cxAdodbPdoConnectionFactory() : CustomAdodbPdo

This is in global namespace for backwards compatibility to PHP 5.3 $ADODB_NEWCONNECTION = array($this, 'adodbPdoConnectionFactory'); leads to a "function name must be a string"

Tags
deprecated

Use Doctrine!

Return values
CustomAdodbPdo

contrexx_strip_tags()

Wrapper for strip_tags() that complies with gpc_magic_quotes

contrexx_strip_tags(string $string) : string
Parameters
$string : string
Return values
string

$string (cleaned)

contrexx_addslashes()

Wrapper for addslashes() that complies with gpc_magic_quotes

contrexx_addslashes(string $string) : string
Parameters
$string : string
Return values
string

cleaned

contrexx_stripslashes()

Wrapper for stripslashes() that complies with gpc_magic_quotes

contrexx_stripslashes(string $string) : string
Parameters
$string : string
Return values
string

contrexx_stripslashes_recursive()

Processes the argument like {@see contrexx_stripslashes()}, but also handles arrays

contrexx_stripslashes_recursive(mixed $param) : mixed

Recurses down into array parameters and applies contrexx_stripslashes() to any scalar value encountered.

Parameters
$param : mixed

A scalar or array value

Return values
mixed

The parameter with magic slashes removed recursively, if any.

preg_match_replace()

Convenient match-and-replace-in-one function

preg_match_replace(string $pattern, string $replace, string $subject[, array<string|int, mixed> &$subpatterns = null ][, int $limit = -1 ][, int &$count = null ]) : string

Parameters are those of preg_match() and preg_replace() combined.

Parameters
$pattern : string

The regex pattern to match

$replace : string

The replacement string for matches

$subject : string

The string to be matched/replaced on

$subpatterns : array<string|int, mixed> = null

The optional array for the matches found

$limit : int = -1

The optional limit for replacements

$count : int = null

The optional counter for the replacements done

Return values
string

The resulting string

checkForSpider()

Checks whether the request comes from a known spider

checkForSpider() : bool
Return values
bool

contrexx_raw2xhtml()

Encodes raw strings or arrays thereof for use with [X]HTML

contrexx_raw2xhtml(mixed $raw) : mixed

Apply to raw strings and those taken from the database, or arrays of these, before writing the contents to the HTML response stream. Note that arrays may be nested, and all scalar (leaf) elements are treated the same way. Array keys are preserved.

Parameters
$raw : mixed

The raw string or array

Tags
author

Severin Raez severin.raez@comvation.com

author

Reto Kohli reto.kohli@comvation.com

Return values
mixed

The HTML encoded string or array

contrexx_input2raw()

Unescapes data from any request and returns a raw string or an array thereof.

contrexx_input2raw(mixed $input) : mixed

Apply to any string or array taken from a get or post request, or from a cookie.

Parameters
$input : mixed

The input string or array

Return values
mixed

The raw string or array

contrexx_input2int()

Ensures that data from any request is limited to integer values

contrexx_input2int(mixed $input) : mixed

Apply to any string or array taken from a get or post request, or from a cookie.

Parameters
$input : mixed

The input string or array

Tags
author

Reto Kohli reto.kohli@comvation.com

Return values
mixed

The integer or array thereof

contrexx_input2float()

Ensures that data from any request is limited to float values

contrexx_input2float(mixed $input) : mixed

Apply to any string or array taken from a get or post request, or from a cookie.

Parameters
$input : mixed

The input string or array

Tags
author

Reto Kohli reto.kohli@comvation.com

Return values
mixed

The float or array thereof

contrexx_input2db()

Unescapes data from any request and adds slashes for insertion into the database

contrexx_input2db(mixed $input) : mixed

Apply to any string or array taken from a get or post request, or from a cookie before inserting into the database.

Parameters
$input : mixed

The input string or array

Return values
mixed

The unescaped slashed string or array

contrexx_input2xhtml()

Unescapes data from any request and encodes it for use with [X]HTML

contrexx_input2xhtml(mixed $input) : mixed

Apply to any string or array taken from a get or post request, or from a cookie before writing it to the HTML response stream.

Parameters
$input : mixed

The input string or array

Return values
mixed

The unescaped HTML encoded string or array

contrexx_raw2db()

Adds slashes to the given raw string or array thereof for insertion into the database.

contrexx_raw2db(mixed $raw) : mixed
Parameters
$raw : mixed

The raw string or array

Return values
mixed

The slashed string or array

contrexx_raw2xml()

Encodes a raw string or array thereof for use with XML

contrexx_raw2xml(mixed $raw) : mixed

Apply to raw strings and those taken from the database or arrays thereof before writing to the XML response stream.

Parameters
$raw : mixed

The raw string or array

Return values
mixed

The XML encoded string or array

contrexx_raw2encodedUrl()

Encodes a raw string or array thereof for use as a href or src attribute value.

contrexx_raw2encodedUrl(mixed $source[, bool $encodeDash = false ]) : mixed

Apply to any raw string or array that is to be used as a link or image address in any tag attribute, such as a.href or img.src.

Parameters
$source : mixed

The raw string or array

$encodeDash : bool = false

Encode dashes ('-') if true. Defaults to false

Return values
mixed

The URL encoded string or array

contrexx_remove_script_tags()

Removes script tags and their content from the given string or array thereof

contrexx_remove_script_tags(mixed $raw) : mixed
Parameters
$raw : mixed

The original string or array

Tags
todo

Check for event handlers

Return values
mixed

The string or array with script tags removed

contrexx_xhtml2raw()

Decode [X]HTML entities to raw plaintext string

contrexx_xhtml2raw(mixed $xhtml) : mixed

Note that arrays may be nested, and all scalar (leaf) elements are treated the same way. Array keys are preserved.

Parameters
$xhtml : mixed

The raw string or array

Tags
author

Thomas Däppen thomas.daeppen@cloudrexx.com

Return values
mixed

The raw decoded string or array

contrexx_html2plaintext()

Extracts the plaintext out of a html code

contrexx_html2plaintext(mixed $html) : mixed
Parameters
$html : mixed

The html code as string or an array containing multiple html code strings

Return values
mixed

The plaintext of the provided html code

getCustomFonts()

Load custom fonts for PDF generation

getCustomFonts(mPdf $mPdf) : void
Parameters
$mPdf : mPdf

mPdf

DBG_log_adodb()

DBG_log_adodb(mixed $msg) : mixed
Parameters
$msg : mixed

        
On this page

Search results