class Application

Application - is the main class that initializes system configuration settings. The system starts working with running an object of this class.

DVelum 0.8 x

class Application
{
    /** 
     * Set system data cache frontend 
     * @param Cache_Interface $cache
     */
    static public function setSystemCache($cache)

    /** 
     * Set application data cache frontend 
     * @param Cache_Interface $cache
     */
    static public function setDataCache($cache)

    /** 
     * Get data cache frontend
     * @return Cache_Interface or false 
     */
    static public function getDataCache()

    /** 
     * Get system cache frontend 
     * @return Cache_Interface
     */
    static public function getSystemCache()

    /** 
     * Get database connector
     * @return Zend_Db_Adapter_Abstract 
     */
    static public function getDbConnection()

    /** 
     * Start application 
     */
    public function run()

    /** 
     * Close application, stop processing
     */
    static public function close()

    /** 
     * Get path to templates 
     * @return string 
     */
    static public function getTemplatesPath()

    /** 
     * Get application object configuration 
     * @param string $config - optional
     * @return Config_Abstract
     */
    static public function getConfig($config = 'main')

    /** 
     * Get link to local data storage (stores runtime data) 
     * @return Store_Local 
     */
    static public function getStorage()
}

DVelum 0.9 x

class Application
{
    /**
     * The constructor accepts the main configuration object as an argument
     * @param Config_Abstract $config
     */
    public function __construct(Config_Abstract $config)

    /**
     * Set adapter for caching application data 
     * @param Cache_Abstract $cache
     */
    public function setCache(Cache_Abstract $cache)

    /**
     * Initialize the application, configure the settings, inject dependencies
     * Adjust the settings necessary for running the system
     */
    public function init()

    /**
     * Start application
     */
    public function run()

    /**
     * Close application, stop processing
     */
    static public function close()
  
    /**
     * Get path to templates
     * @return string
     */
    static public function getTemplatesPath()
}

comments powered by Disqus