5 * Legacy state manager for Panels.
7 * Checks all possible ways (using discovery of patterned method names) in which
8 * Panels may need to operate in legacy mode,
9 * sets variables as appropriate, and returns an informational
12 class PanelsLegacyState
{
17 $args = func_get_args();
18 return call_user_func_array($func, $args);
21 function getStatus() {
22 if (!isset($this->legacy
)) {
23 $this->determineStatus();
29 * Run all compatibility checks.
31 function determineStatus() {
32 $this->legacy
= array();
33 foreach(get_class_methods($this) as
$method) {
34 if (strtolower(substr($method, 0, 5)) == 'check') {
35 $this->legacy
[$method] = $this->$method();
38 $this->legacy
= array_filter($this->legacy
);
41 // At this time there are no legacy checks.