coldbox.system.core.util

Class CFMLEngine

lucee.Component
    extended by coldbox.system.core.util.CFMLEngine

Copyright Since 2005 ColdBox Framework by Luis Majano and Ortus Solutions, Corp www.ortussolutions.com --- Allows you to manipulate determine CFML engine capabilities

Class Attributes:
  • synchronized : false
  •  
  • accessors : false
  •  
  • persistent : false
  •  
    Constructor Summary
    init()
          Constructor.
    Method Summary
    string getEngine()
         Get the current CFML Engine name.
    string getFeatureEngineSlug()
         Discover the running engine slug for feature checks.
    string getFullVersion()
         Returns the current running CFML full version.
    numeric getVersion()
         Returns the current running CFML major version level.
    boolean hasFeature(any feature, [any engine='[runtime expression]'])
         CFML Engine based features checker.
    boolean isAdobe()
         Verify if this is an adobe server.
    boolean isLucee()
         Verify if this is a lucee server.
     
    Methods inherited from class lucee.Component
    None

    Constructor Detail

    init

    public init()

    Constructor


    Method Detail

    getEngine

    public string getEngine()

    Get the current CFML Engine name

    Returns:
    Either 'lucee' or 'adobe'

    getFeatureEngineSlug

    public string getFeatureEngineSlug()

    Discover the running engine slug for feature checks

    Returns:
    lucee, adobe{version}

    getFullVersion

    public string getFullVersion()

    Returns the current running CFML full version


    getVersion

    public numeric getVersion()

    Returns the current running CFML major version level


    hasFeature

    public boolean hasFeature(any feature, [any engine='[runtime expression]'])

    CFML Engine based features checker. Pass in the feature and engine and see if you can use it.

    Parameters:
    feature - The feature to check
    engine - The engine we are checking or defaults to the running engine

    isAdobe

    public boolean isAdobe()

    Verify if this is an adobe server


    isLucee

    public boolean isLucee()

    Verify if this is a lucee server