Properties

Methods

Environment class

Environment

 

 

 

Overview

Author

Joshua Perez [http://www.joshua-studios.com]
Matt Przybylski [http://www.reintroducing.com]

Version

2.0

Description

A small Singleton utility class that allows you to set debug and live path variables for local and remote testing without having to toggle anything.

Properties

 

basePath

Usage

public function get basePath():String

Description

Returns the basePath for use in loading assets.
 

isLive

Usage

public function get isLive():Boolean

Description

Returns a Boolean value if the site is on a live server or being tested locally.

Methods

 

setPaths

Usage

public function setPaths($debugPath:String, $livePath:String):void

Description

Sets the proper debug/live paths.

Parameters

$debugPath
A string representing the local (debug) path
$livePath
A string representing the remote (live) path

Returns

void