enabled() public static method

Enabled can mean various things, e.g. having a PECL memcached extension compiled & loaded, as well as having the memcache server up & available.
public static enabled ( string $name ) : boolean
$name string The named configuration whose adapter will be checked.
return boolean True if adapter is enabled, false if not. This method will return null if no configuration under the given $name exists.
Beispiel #1
0
 /**
  * Should use ApplyStrategies() to call enabled() from the strategy class
  * that should check if the requirements to use the strategy are met.
  *
  * @todo
  * @see: lithium\core\Adaptable::enabled()
  */
 public static function enabled($name)
 {
     return parent::enabled($name);
 }