Wire::fuel PHP Method

fuel() public method

Get the Fuel specified by $name or NULL if it doesn't exist
Deprecation: Fuel is now an internal-only keyword and this method will be going away. Use $this->wire(name) or $this->wire()->name instead
Deprecation:
public fuel ( string $name ) : mixed | null
$name string
return mixed | null
    public function fuel($name)
    {
        return self::$fuel->{$name};
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * Add fuel to all classes descending from Wire
  *
  * @param string $name 
  * @param mixed $value 
  *
  */
 public static function setFuel($name, $value)
 {
     if (is_null(self::$fuel)) {
         self::$fuel = new Fuel();
     }
     self::$fuel->set($name, $value);
 }
All Usage Examples Of Wire::fuel