\Yepnope_Backend
The Yepnope equivalent of Requirements_Backend. All the actual logic takes place here.
Synopsis
class Yepnope_Backend
extends Requirements_Backend
{
- // members
- protected ArrayList $yepnopeTests;
- protected boolean|string $yepnopeScript = false;
- protected boolean $automaticallyEvaluate = true;
- protected boolean|string $yepnopeTimeout = false;
- // methods
- public Yepnope_Backend __construct()
- public void set_yepnope()
- public string|bool get_yepnope()
- public void set_automatically_evaluate()
- public boolean get_automatically_evaluate()
- public void set_timeout()
- public string|bool get_timeout()
- public void add_files()
- public string generateIdentifier()
- public YepnopeTestObject|null get_test()
- public void clear_test()
- public void add_test()
- public void evalYepnope()
- protected string convertToObject()
Hierarchy
Extends
- Requirements_Backend
Members
protected
- $automaticallyEvaluate — boolean
- $yepnopeScript
—
boolean|string
The location of the yepnope script, or false if not required - $yepnopeTests — ArrayList
- $yepnopeTimeout
—
boolean|string
The time in milliseconds for yepnope error timeout, or false to leave default
Methods
protected
- convertToObject() — Convert tests to a JavaScript object. Somewhat a "patched" version of json_encode, as we don't want functions wrapped in strings
public
- __construct() — Use __construct() for setting default path as you can't concatenate in properties
- add_files()
- add_test()
- clear_test()
- evalYepnope() — Evaluate yepnope conditions and build Javascript to be output in template
- generateIdentifier() — Generates an identifier for a test from a list of files
- get_automatically_evaluate()
- get_test()
- get_timeout()
- get_yepnope()
- set_automatically_evaluate()
- set_timeout()
- set_yepnope()