Functions

Checks whether the request comes from a known spider

checkForSpider() : boolean

Returns

boolean

Wrapper for addslashes() that complies with gpc_magic_quotes

contrexx_addslashes(string $string) : string

Parameters

$string

string

Returns

stringcleaned

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

Returns

mixedThe plaintext of the provided html code

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

Returns

mixedThe unescaped slashed string or array

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.

author Reto Kohli

Parameters

$input

mixed

The input string or array

Returns

mixedThe float or array thereof

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.

author Reto Kohli

Parameters

$input

mixed

The input string or array

Returns

mixedThe integer or array thereof

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

Returns

mixedThe raw string or array

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

Returns

mixedThe unescaped HTML encoded string or array

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

contrexx_isCoreModule(string $moduleName) : boolean
deprecated

Parameters

$moduleName

string

Returns

boolean

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

contrexx_isModuleActive(string $moduleName) : boolean
deprecated

Parameters

$moduleName

string

Returns

boolean

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

contrexx_isModuleInstalled(string $moduleName) : boolean
deprecated

Parameters

$moduleName

string

Returns

boolean

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

Returns

mixedThe slashed string or array

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

contrexx_raw2encodedUrl(mixed $source, boolean $encodeDash) : 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

boolean

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

Returns

mixedThe URL encoded string or array

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.

author Severin Raez
author Reto Kohli

Parameters

$raw

mixed

The raw string or array

Returns

mixedThe HTML encoded string or array

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

Returns

mixedThe XML encoded string or array

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

contrexx_remove_script_tags(mixed $raw) : mixed
todo Check for event handlers

Parameters

$raw

mixed

The original string or array

Returns

mixedThe string or array with script tags removed

Wrapper for strip_tags() that complies with gpc_magic_quotes

contrexx_strip_tags(string $string) : string

Parameters

$string

string

Returns

string$string (cleaned)

Wrapper for stripslashes() that complies with gpc_magic_quotes

contrexx_stripslashes(string $string) : string

Parameters

$string

string

Returns

string

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

contrexx_stripslashes_recursive(mixed $param) : mixed

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

Parameters

$param

mixed

A scalar or array value

Returns

mixedThe parameter with magic slashes removed recursively, if any.

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

getPaging(int $numof_rows, int $pos, string $uri_parameter, string $paging_text, boolean $showeverytime, int $results_per_page) : 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 {@see getPosition()}.

copyright CONTREXX CMS - COMVATION AG
author Comvation Development Team
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.

Parameters

$numof_rows

int

The number of rows available

$pos

int

The offset from the first row

$uri_parameter

string

$paging_text

string

$showeverytime

boolean

$results_per_page

int

Returns

stringResult

Convenient match-and-replace-in-one function

preg_match_replace(string $pattern, string $replace, string $subject, array $subpatterns, integer $limit, integer $count) : 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

The optional array for the matches found

$limit

integer

The optional limit for replacements

$count

integer

The optional counter for the replacements done

Returns

stringThe resulting string

Builds a (partially localized) date string from the optional timestamp.

showFormattedDate(int $unixtimestamp) : string

If no timestamp is supplied, the current date is used. The returned date has the form "Weekday, Day. Month Year".

deprecated
todo The function is inappropriately named "showFormattedDate" as the date is returned, and not "shown" in any way.
todo The formatting is not localized. Use a date format constant and/or language variable template.

Parameters

$unixtimestamp

int

Unix timestamp

Returns

stringFormatted date

Classes and interfaces

BackendTable

BackendTable

« More »

CompressedList

Compressed list

« More »

ContentTree

This class creates a tree structure as an indexed array object content array provider

« More »

ContentWorkflow

Content Workflow

« More »

ContentWorkflowException

ContentWorkflowException

« More »

Country

Country helper methods

« More »

Creditcard

Creditcard helper methods

« More »

Cx

This loads and controls everything

« More »

SystemComponent

A system component (aka "module", "core_module" or "core component")

« More »

EntityManager

Wrapper class for Doctrine Entity Manager

« More »

RecursiveArrayAccess

Wrapper class for the recursive array

« More »

ModuleChecker

Module Checker Checks for installed and activated modules

« More »

Env

A global environment repository.

« More »

Html

HTML class

« More »

HtmlTag

HTML Tag Class

« More »

Image

Image

« More »

Imagetype

Image

« More »

InitCMS

Initialize the CMS

« More »

LanguageManager

Language Manager

« More »

LinkGenerator

Handles the node-Url placeholders: [[ NODE_(|[_])[_] ]]

« More »

LinkGeneratorException

LinkGeneratorException

« More »

LinkSanitizer

This class replaces any links from Contrexx < 3.0 on the fly.

« More »

MailTemplate

Core Mail and Template Class

« More »

Message

Message

« More »

Mime

OBSOLETE -- See {@see Filetype.class.php}

« More »

Module

Module

« More »

ModuleException

ModuleException

« More »

ModuleManagerException

Modulemanager

« More »

OBOLETE_Mail

OBSOLETE -- See {@see core/MailTemplate.class.php} Note that this partial class is left over for updating to the new MailTemplate.

« More »

PDF

PDF class

« More »

PageGuard

Handles access restriction administration on Pages.

« More »

PageGuardException

PageGuardException

« More »

Paging

Creates the paging

« More »

Permission

Permission

« More »

Security

Security

« More »

SettingDb

Manages settings stored in the database

« More »

SmtpSettings

SMTP Settings

« More »

Socket

Useful methods that help you connect to other hosts using sockets

« More »

Sorting

Provides methods to create sorted tables

« More »

Text

Text

« More »

adminMenu

Class for the Admin CP navigation

« More »

cmsSession

Session

« More »

error

Handles all errors.

« More »

logmanager

Class Logging manager Class to see logging

« More »

modulemanager

Modulemanager

« More »

myAdminManager

my Administrator manager

« More »

serverSettings

Settings

« More »

settingsManager

Settings

« More »

skins

Skins class Skins and Themes management functions

« More »

Constants

 

_DBM_DEBUG

_DBM_DEBUG 

Classes and interfaces

ClassLoader

Contrexx ClassLoader

« More »

LegacyClassLoader

LegacyClassLoader

« More »

Classes and interfaces

ComponentController

Main controller for ContentManager

« More »

ContentManager

ContentManager

« More »

ContentManagerException

ContentManager

« More »

Functions

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

init(string $mode) : \Cx\Core\Core\Controller\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

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

Returns

\Cx\Core\Core\Controller\CxInstance of Contrexx

Classes and interfaces

ComponentException

ComponentException is thrown for legacy components without an exception in LegacyComponentHandler

« More »

ComponentHandler

Handles all components, including legacy ones.

« More »

LegacyComponentHandler

This handles exceptions for new Component structure.

« More »

Controller

This is the superclass for all Controller classes

« More »

EntityBase

This is the base class for all entities

« More »

SystemComponentBackendController

Backend controller to create a default backend view.

« More »

SystemComponentController

This is the superclass for all main Controllers for a Component

« More »

SystemComponentException

Thrown for illegal component types

« More »

SystemComponentFrontendController

Frontend controller to easily create a frontent view

« More »

SystemComponentRepository

Repository for SystemComponents

« More »

Constants

 

BACKEND_LANG_ID

BACKEND_LANG_ID 
 

CALENDAR_MANDATE

CALENDAR_MANDATE 
 

CALENDAR_MANDATE

CALENDAR_MANDATE 
 

CONTREXX_SCRIPT_PATH

CONTREXX_SCRIPT_PATH 
 

FRONTEND_LANG_ID

FRONTEND_LANG_ID 
 

LANG_ID

LANG_ID 
 

LANG_ID

LANG_ID 
 

MODULE_INDEX

MODULE_INDEX 
 

PERMISSION_COUNTRY_EDIT

PERMISSION_COUNTRY_EDIT 
 

PERMISSION_COUNTRY_VIEW

PERMISSION_COUNTRY_VIEW 

Functions

Factory callback for AdoDB NewConnection

cxAdodbPdoConnectionFactory() : \Cx\Core\Model\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"

deprecated Use Doctrine!

Returns

Classes and interfaces

CustomAdodbPdo

This class is needed in order to make AdoDB use an existing PDO connection

« More »

Db

Db Class

« More »

DbException

DB Exception

« More »

Classes and interfaces

EventManager

Event manager

« More »

EventManagerException

Event manager exception

« More »

ModelEventWrapper

Model event wrapper

« More »

ModelEventListener

Model event listener

« More »

Classes and interfaces

Sigma

Description of Sigma

« More »

Classes and interfaces

JsonAdapter

JSON Adapter for JSON requests

« More »

JsonContentManager

JSON Adapter for ContentManager

« More »

JsonNode

JSON Adapter for Cx\Core\ContentManager\Model\Entity\Node

« More »

JsonPage

JSON Adapter for Cx\Core\ContentManager\Model\Entity\Page

« More »

BlockCouldNotBeSavedException

Class BlockCouldNotBeSavedException

« More »

JsonBlock

JSON Adapter for Block module

« More »

NoBlockFoundException

Class NoBlockFoundException

« More »

NoPermissionException

Class NoPermissionException

« More »

NotEnoughArgumentsException

Class NotEnoughArgumentsException

« More »

JsonCalendar

JSON Adapter for Calendar module

« More »

JsonUser

JSON Adapter for Block module

« More »

JsonData

JSON Interface to Contrexx Doctrine Database

« More »

JsonCrm

JSON Adapter for Survey module

« More »

Classes and interfaces

Exportable

Exportable

« More »

Importable

Importable

« More »

CsvInterface

Csv interface

« More »

DataSet

Data Set

« More »

DataSetException

Data Set Exception

« More »

YamlInterface

Yaml interface

« More »

Classes and interfaces

NestedNavigationPageTree

NestedNavigationPageTree

« More »

PageTree

Base class for all kinds of trees such as Sitemaps and Navigation.

« More »

SigmaPageTree

SigmaPageTree

« More »

SitemapPageTree

SitemapPageTree

« More »

XmlSitemapPageTree

Class XmlSitemapPageTree

« More »

Classes and interfaces

NodePlaceholder

NodePlaceholder class according to http://contrexx.com/wiki/index.php/Development_Content#Node-URL_Notation

« More »

NodePlaceholderException

Exception that is thrown if a NodePlaceholder cannot be initialized

« More »

Resolver

Takes an URL and tries to find the Page.

« More »

ResolverException

ResolverException

« More »

Url

An URL container

« More »

UrlException

URL Exception

« More »

Constants

 

FRONTEND_LANG_ID

FRONTEND_LANG_ID 
 

MODULE_INDEX

MODULE_INDEX 

Classes and interfaces

Theme

Theme

« More »

ThemeRepository

ThemeRepository

« More »

Classes and interfaces

BBCodeHandler

BBCodeHandler class

« More »

Wysiwyg

Wysiqyg class

« More »
© Copyright 2014 by Comvation AG
Generated on 2014-07-11T08:39:10+02:00.