Classes, interfaces and traits

IAuditManager

IAuditManager 

An abstract interface for classes that provide auditing.

inherited

FilePickerInterface

FilePickerInterface 

Define an interface for modules that provide filepicker functionality.

inherited

ICookieManager

ICookieManager 

An interface to describe a CMSMS cookie manager.

inherited

HttpErrorLogAuditor

HttpErrorLogAuditor 

A basic error log auditor that uses PHP's error log to output formatted messages.

inherited

AuditManager

AuditManager 

A manager contains links to the standard auditor and an optional audit handler.

inherited final

so that CMSMS can output it's messages somewhere.

« More »

FilePickerProfile

FilePickerProfile 

A simple class that defines a profile of information used by the filepicker to indicate how it should behave and what functionality should be provided.

inherited

This is an immutable class.

The constructor and overrideWith methods of this class accept an associative array of parameters (see the properties below) to allow building or altering a profile object. Ths is the only time when properties of a profile can be adjusted.


$obj = new \CMSMS\FilePickerProfile( [ 'type'=>FileType::TYPE_IMAGE,
   'exclude_prefix'=>'foo' ] );
« More »

FileType

FileType 

A simple abstract class that defines constants for numerous file types.

inherited abstract

AutoCookieManager

AutoCookieManager 

This class adjusts the way cookies are stored to allow identifying their primitive type (string, object, array). And then when retrieved can automatically restore them.

inherited

This class uses json to encoe arrays and objects, for security. Objects should implement the JsonSerializable interface if they can be saved to a cookie.

« More »

frontend_theme_placeholder

frontend_theme_placeholder 

A class that acts as a placeholder for a frontend theme.

inherited

the frontend theme is used by the cms_theme resource to display content

« More »

HookManager

HookManager 

A class to manage hooks, and to call hook handlers.

inherited

This class is capable of managing a flexible list of hooks, registering handlers for those hooks, and calling the handlers

« More »

simple_plugin_operations

simple_plugin_operations 

This operations class handles reading and writing simple plugins.

inherited final

this is a singleton class.

« More »

ScriptManager

ScriptManager 

The ScriptManager class provides the ability to queue javascript files for rendering on the frontend

inherited

apc_cache_driver

apc_cache_driver 

This is a cache driver for CMSMS that stores cached data in memory using the APC library

inherited

This class will obfuscate all keys, and groups for added security.

« More »

hook_manager

hook_manager 

A class to add hook handlers and emit hooks of various types.

inherited

This class is capable of managing a flexible list of hooks, registering handlers for those hooks, and calling the handlers

« More »

FileTypeHelper

FileTypeHelper 

A class to provide utilities for manipulating files by their type.

inherited

StylesheetManager

StylesheetManager 

This class is the backend behind the {cms_queue_css} and {cms_render_css} plugins.

inherited

It handles queueing CSS files, and then concatenating them all on output, and generating the appropriate HTML meta tag.

« More »

LayoutTemplateManager

LayoutTemplateManager 

A class that manages the storage of CmsLayoutTemplate objects in the database.

inherited

This class also supports caching, and sending hooks at various levels

« More »

SignedCookieManager

SignedCookieManager 

This cookie manager obfuscates all keys and signs via SHA1 the values On get, if the attached signature does not match the generated signature, no value is returned.

inherited

Classes, interfaces and traits

TemplateTypeAssistant

TemplateTypeAssistant 

An abstract class to define an assistant to the template type objects in the database.

inherited abstract

Classes, interfaces and traits

SimpleAlert

SimpleAlert 

The SimpleAlert class is a type of alert that allows the developer to create alerts with pre-defined titles, messages, icons, and permissions.

inherited

Admin alerts have a name, priority, title, message, a timestamp and can optionally refer to a module. Methods are used to test if a module is for a specific user, and to format the message.

Alerts are stored as preferences in the database. If the name is the name of the class or something else that is not data or time dependant the only one instance of that alert can be stored in the database. This class usses the ArrayAccess interface to behave like a PHP array.

« More »

TranslatableAlert

TranslatableAlert 

The TranslatableAlert object is an alert that supports translatable language keys.

inherited

This class will use the module that is associated with the alert to translate the key. If the module name is empty, or the special value 'core' then the global 'lang' function will be used to read translations from the admin lang file.

« More »

Alert

Alert 

An abstract class that defines Admin Alerts for CMSMS.

inherited abstract

Admin alerts have a name, priority, title, message, a timestamp and can optionally refer to a module. Methods are used to test if a module is for a specific user, and to format the message.

Alerts are stored as preferences in the database. If the name is the name of the class or something else that is not data or time dependant the only one instance of that alert can be stored in the database. This class usses the ArrayAccess interface to behave like a PHP array.

« More »

Classes, interfaces and traits

Error

Error 

#ignore

inherited

compatibility

compatibility 

A class for providing some compatibility functionality with older module code

inherited final

DataDictionary

DataDictionary 

A class defining methods to work directly with database tables.

inherited abstract

This file is based on the DataDictionary base class from the adodb_lite library which was in turn a fork of the adodb library at approximately 2004.

Credits and kudos to the authors of those packages.

« More »

Connection

Connection 

A class defining a database connection, and mechanisms for working with a database.

inherited abstract

This library is largely compatible with adodb_lite with the pear,extended,transaction plugins with a few notable differences:

Differences:

  • GenID will not automatically create a sequence table.

    We encourage you to not use sequence tables and use auto-increment fields instead.

« More »

DatabaseException

DatabaseException 

A special type of exception related to database queries.

inherited

DatabaseConnectionException

DatabaseConnectionException 

A special exception indicating a problem connecting to the database.

inherited

Resultset

Resultset 

A class defining a resultset and how to interact with results from a database query.

inherited abstract

Statement

Statement 

A class defining a prepared database statement.

inherited abstract

ConnectionSpec

ConnectionSpec 

A class defining all of the details needed to connect to a database.

inherited

Some database drivers may not require all of the parameters.

« More »

ConnectionSpecException

ConnectionSpecException 

A special exception to indicate a problem with a ConnectionSpec

inherited

EmptyRecordset

EmptyRecordset 

A final class to describe a special (empty) recordset.

inherited final

Classes, interfaces and traits

CronJobTrait

CronJobTrait 

A Trait to define functionality for recurring cron jobs.

inherited

CronJobInterface

CronJobInterface 

A simple interface to define the functions and constants needed for a cron job.

inherited

CronJob

CronJob 

An abstract base class for a cronjob.

inherited abstract

A Cron job is different than a regular job in that it recurs at a specified frequency and can have an end/until date.

« More »

RegularTask

RegularTask 

This class allows converting an old CmsRegularTask pseudocron task into an asynchronous background job.

inherited

Job

Job 

A class defining an asynchronous job, and mechanisms for saving and retrieving that job.

inherited abstract

JobManager

JobManager 

A singleton class defining a manager for asyncrhonous jobs.

inherited final

In reality, this is a simple proxy for methods in the CmsJobManager module.

« More »