cms_config View code

Implements \ArrayAccess

A singleton class for interacting with the CMSMS config.php file.

This class usses the ArrayAccess interface to behave like a PHP array.

since 1.9
package

CMS

license

GPL

author

Robert Campbell (calguy1000@cmsmadesimple.org)

Methods

__construct(\CmsApp $app) 

This class represents and manages the various CMSMS Config options. It also creates some convenient defines, and has som I/O capabilities.

This is a singleton class and it can only be instantiated once. It is instantiated in the primary CMSMS bootstrapping procedure.

Arguments

\CmsApp $app

The application instance.

get_instance() : \cms_config

Retrieve the global instance of the cms_config class This method will instantiate the object if necessary

static

Response

\cms_config

smart_root_url() : string

Returns either the http root url or the https root url depending upon the request mode.

deprecated

Response

string

smart_uploads_url() : string

Returns either the http uploads url or the https uploads url depending upon the request mode.

deprecated

Response

string

smart_image_uploads_url() : string

Returns either the http image uploads url or the https image uploads url depending upon the request mode.

deprecated

Response

string