Class dftconfig
Default configuration options
Methods summary
public static boolean | # SESS_path( string $path ) custom function to define urls for which we need to keep session information returns true if this is a session-bound path |
public static | |
public static type | |
public static string | # getUrlForm( ) defines the url form as a regular expression, to choose where to place the language part |
public static string | |
public static | # Request_Filter( used to alter the request (a view from another, redirections, ...) |
public static boolean | |
public static boolean | # TIME_Banner( string $path ) displays the performance banner (timings/memory) depending on the material path |
public static | |
public static | |
public static |
Magic methods summary
Constants summary
boolean | databaseErrFatal | true | # is a database error fatal, or do we attempt to continue the view's rendering? |
string | errorHandle |
| # Action for errors: Fatal, Log, ... |
integer | errorDefaultMask | E_WARNING | # Errors to ignore default is E_WARNING |
string | DFT_translation | 'en' | # default language in case of unavailable translation in requested language |
boolean | checkUtf8BOM | true | # do we check if the UTF-8 is present in the view, and adds it if necessary ? |
string | VW_APARENT | 'data-cmc-parent' | # custom attribute used to name of the parent material |
string | VW_APOSITION | 'data-cmc-position' | # custom attribute for child/parent relationship |
string | VW_ACMCID | 'data-cmc-id' | # custom attribute for defining section or view id |
string | VW_CSECT | 'cmc-sect' | # classname to indicate that this is a subsection |
string | VW_MERGEITEM | 'cmc-merge' | # classname for advanced material merge: items outside of sections to be merged with the 'master'. |
string | VW_ADDITEM | 'cmc-add' | # classname advanced material merge: items outside of sections to be added into the 'master'. |
string | VW_REPLACEITEM | 'cmc-replace' | # classname for advanced material merge: items outside of sections to replaced with the 'master'. |
string | MAT_path | 'views/' | # root location of material files |
boolean | URL_absolute | true | # url form when rewritten (by core\ui\documentFrame class). false value is not recommended in general, and not supported in REST applications default: true |
boolean | APP_cache | false | # Application cache option When enabled, the static version of views and frames are kept |
boolean | SESS_save | true | # Session cache option When enabled, saves the session object. This is mandatory for applications |
boolean | SESS_save_mat | false | # Session material part option When enabled, the material (the page) is saved with the session. This consumes some space while avoiding the need of recalculating the Html page in dynframe::viewUpdate |
boolean | poweredBy | true | # 'powered by' banner value. 'true' for default content, or a string for a custom content |
string | VIEW_EXT | '.html' | |
integer | cmcStrictHTML | 0 | # materials HTML strictness |
boolean | RenderHtml_Trim | true | # is HTML rendering stripping uneccessary spaces? |
boolean | RenderHtml_Format | true | # is HTML rendering reformating HTML |
boolean | FixHtml_httplinks | true | # if true, all http:// or https:// links in view will be replaced by // |
boolean | jQueryFixVersion | true | # if true changes jquery version (google CDN) from the running client |
boolean | jQueryAutoMinify | true | # automatic place 'min' in case of jQuery CDN detection |
boolean | jQueryAutoLatest | true | # use a 'latest' version |
string | jQueryLegacyLatest | '1.11.1' | # latest IE7/8 compatible jQuery version |
string | jQueryLatest | '2.1.1' | # latest jQuery version |
boolean | Javascript_DelayLoad | false | # if true automatically generates delay load of javascript files |
boolean | MAT_scriptmove | true | # are javascripts sections put together in bottom? |
string | MAT_scriptcodeid | 'cmc-code' | # custom attribute for component script item |
string | MAT_scriptbegin | 'cmc-scripthead' | # custom attribute of heading part id of the <div> that contains the script |
string | MAT_scriptend | 'cmc-scripttail' | |
string | MAT_scriptclass | 'latescript' | # class for scripts to be moved to scripttail part |
string | MAT_scriptignclass | 'nomove' | # class for imutable script; items will be kept in the initial place |
string | POST_elem | "cmcdata" | # name of JSON part of POST in case of multipart POST request (typically uploading files) must match javascript component (cmc.js) |
string | lc_date | 'd/m/Y' |
Properties summary
public static mixed | $userConfig |