src/ADT/Constant.php
public static function set( $key, $value, $strict = TRUE )
	{
		$key	= strtoupper( $key );
		if( defined( $key ) && $strict )
			throw new RuntimeException( 'Constant "'.$key.'" is already defined.' );
		return define( $key, $value );
	}
public static function set( $key, $value, $strict = TRUE )
	{
		$key	= strtoupper( $key );
		if( defined( $key ) && $strict )
			throw new RuntimeException( 'Constant "'.$key.'" is already defined.' );
		return define( $key, $value );
	}
public static function set ( $ key , $ value , $ strict = TRUE ) { $ key = strtoupper ( $ key ) ; if ( defined ( $ key ) && $ strict ) throw new RuntimeException ( 'Constant "' . $ key . '" is already defined.' ) ; return define ( $ key , $ value ) ; }
Sets a Constant.
@access		public
@static
@param		string		$key		Name of Constant to set
@param		mixed		$value		Value of Constant to set
@param		bool		$strict		Flag: set only if unset
@return		bool
@throws		RuntimeException		if Constant has already been set
Sets a Constant .