class PanelsLegacyState in Panels 7.3
Same name and namespace in other branches
- 6.3 includes/legacy.inc \PanelsLegacyState
Legacy state manager for Panels.
Checks all possible ways (using discovery of patterned method names) in which Panels may need to operate in legacy mode, sets variables as appropriate, and returns an informational.
Hierarchy
- class \PanelsLegacyState
Expanded class hierarchy of PanelsLegacyState
File
- includes/
legacy.inc, line 15 - Legacy state manager for Panels.
View source
class PanelsLegacyState {
var $legacy = NULL;
/**
* Translation wrapper.
*/
function t() {
$func = get_t();
$args = func_get_args();
return call_user_func_array($func, $args);
}
/**
* Get Status.
*/
function getStatus() {
if (!isset($this->legacy)) {
$this
->determineStatus();
}
return $this->legacy;
}
/**
* Run all compatibility checks.
*/
function determineStatus() {
$this->legacy = array();
foreach (get_class_methods($this) as $method) {
if (strtolower(substr($method, 0, 5)) == 'check') {
$this->legacy[$method] = $this
->{$method}();
}
}
$this->legacy = array_filter($this->legacy);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PanelsLegacyState:: |
property | |||
PanelsLegacyState:: |
function | Run all compatibility checks. | ||
PanelsLegacyState:: |
function | Get Status. | ||
PanelsLegacyState:: |
function | Translation wrapper. |