PHP Class TinyAuth\Utility\Utility

Show file Open project: dereuromark/cakephp-tinyauth Class Usage Examples

Public Methods

Method Description
deconstructIniKey ( string $key ) : array Deconstructs an authentication ini section key into a named array with authentication parts.
parseFile ( string $ini ) : array Returns the ini file as an array.

Method Details

deconstructIniKey() public static method

Deconstructs an authentication ini section key into a named array with authentication parts.
public static deconstructIniKey ( string $key ) : array
$key string INI section key as found in authentication.ini
return array Array with named keys for controller, plugin and prefix

parseFile() public static method

Returns the ini file as an array.
public static parseFile ( string $ini ) : array
$ini string Full path to the ini file
return array List