Overview

The Solar arch-class provides static methods needed throughout the framework environment.

Package

This class is part of the Solar package.

Configuration Keys

  • ini_set: An array of key-value pairs where the key is an » ini_set key, and the value is the value for that setting.

  • registry_set: An array of key-value pairs to use in pre-setting registry objects. The key is a registry name to use. The value is either a string class name, or is a sequential array where element 0 is a string class name and element 1 is a configuration array for that class. Cf. Solar_Registry::set().

  • start: Run these scripts at the end of Solar::start().

  • stop: Run these scripts in Solar::stop().

  • system: The system directory path.

Constants

None.

Public Properties

These are all the public properties in the Solar class.

You can also view the list of all public, protected, and private properties.

$system

The Solar system root directory.

Public Methods

These are all the public methods in the Solar class.

You can also view the list of all public, protected, and private methods.

apiVersion()

Returns the API version for Solar.

callbacks()

Runs a series of callbacks using call_user_func_array().

cleanGlobals()

Cleans the global scope of all variables that are found in other super-globals.

dependency()

Combination dependency-injection and service-locator method; returns a dependency object as passed, or an object from the registry, or a new factory instance.

dump()

Dumps a variable to output.

exception()

Generates a simple exception, but does not throw it.

factory()

Convenience method to instantiate and configure an object.

start()

Starts Solar: loads configuration values and and sets up the environment.

stop()

Stops Solar: runs stop scripts and cleans up the Solar environment.



Local