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() 

ignore

get_upload_size() 

Retrieve the maximum file upload size (in bytes)

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

save(boolean $verbose = true, string $filename = '') 

A function to save the current state of the config.php file. Any existing file is backed up before overwriting.

Arguments

boolean $verbose

indicates whether comments should be stored in the config.php file.

string $filename

An optional complete file specification. If not specified the standard config file location will be used.

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

Properties

ignore

_instance : 
static

Type(s)

ignore

_types : 

Type(s)

ignore

_data : 

Type(s)

ignore

_cache : 

Type(s)