PHP Class Liquid, php-liquid

Inheritance: extends Drinkable
显示文件 Open project: harrydeluxe/php-liquid Class Usage Examples

Public Methods

Method Description
array_flatten ( array $array ) : array Flatten a multidimensional array into a single array. Does not maintain keys.
autoload ( string $className ) : boolean Class autoload loader.
classExists ( string $className ) : boolean Checks if class exists in $_coreClasses array
registerAutoloader ( callback $callback ) Registers a new class autoloader.

Method Details

array_flatten() public static method

Flatten a multidimensional array into a single array. Does not maintain keys.
public static array_flatten ( array $array ) : array
$array array
return array

autoload() public static method

This method is provided to be invoked within an __autoload() magic method.
public static autoload ( string $className ) : boolean
$className string class name
return boolean whether the class has been loaded successfully

classExists() public static method

Checks if class exists in $_coreClasses array
public static classExists ( string $className ) : boolean
$className string class name
return boolean whether the class exists in $_coreClasses

registerAutoloader() public static method

The new autoloader will be placed before {@link autoload} and after any other existing autoloaders.
public static registerAutoloader ( callback $callback )
$callback callback a valid PHP callback (function name or array($className,$methodName)).