\Yepnope
The main Yepnope class - all function calls invoke Yepnope_Backend in the same way that the Requirements class does
Synopsis
class Yepnope
extends Requirements
{
- // members
- private static Yepnope_Backend|null $backend = NULL;
- // methods
- public static Yepnope_Backend backend()
- public static void set_yepnope()
- public static void set_automatically_evaluate()
- public static boolean get_automatically_evaluate()
- public static void add_files()
- public static void add_test()
- public static YepnopeTestObject|null get_test()
- public static void clear_test()
- public static void set_timeout()
- public static void eval_yepnope()
Hierarchy
Extends
- Requirements
Members
private
- $backend
—
Yepnope_Backend|null
Instance of yepnope for storage
Methods
public
- add_files() — Add files to be output by yepnope
- add_test() — Add a yepnope test
- backend() — Returns an instance of Yepnope_Backend
- clear_test() — Clear a yepnope test
- eval_yepnope() — Evaluate Yepnope tests specified and set Requirements::customScript() with the produced JavaScript
- get_automatically_evaluate() — Return whether we should automatically evaluate Yepnope. Used in YepnopeControllerExtension
- get_test() — Get a yepnope test object
- set_automatically_evaluate() — Set whether we should automatically evaluate Yepnope
- set_timeout() — Set error timeout length in milliseconds
- set_yepnope() — Set a custom file to include for 'yepnope', such as modernizr or false if not required