PHP Class Browscap\Parser\IniParser

Author: James Titcumb ([email protected])
Inheritance: implements Browscap\Parser\ParserInterface
Show file Open project: browscap/browscap Class Usage Examples

Protected Properties

Property Type Description
$data array
$fileLines array
$filename string
$shouldSort boolean

Public Methods

Method Description
__construct ( string $filename )
getFileLines ( ) : array
getFilename ( ) : string
getLinesFromFile ( ) : array
getParsed ( ) : array
parse ( ) : array
setFileLines ( array $fileLines )
setShouldSort ( boolean $shouldSort ) : IniParser
shouldSort ( ) : boolean

Protected Methods

Method Description
sortArrayAndChildArrays ( array $array ) : array

Method Details

__construct() public method

public __construct ( string $filename )
$filename string

getFileLines() public method

public getFileLines ( ) : array
return array

getFilename() public method

public getFilename ( ) : string
return string

getLinesFromFile() public method

public getLinesFromFile ( ) : array
return array

getParsed() public method

public getParsed ( ) : array
return array

parse() public method

public parse ( ) : array
return array

setFileLines() public method

public setFileLines ( array $fileLines )
$fileLines array

setShouldSort() public method

public setShouldSort ( boolean $shouldSort ) : IniParser
$shouldSort boolean
return IniParser

shouldSort() public method

public shouldSort ( ) : boolean
return boolean

sortArrayAndChildArrays() protected method

protected sortArrayAndChildArrays ( array $array ) : array
$array array
return array

Property Details

$data protected property

protected array $data
return array

$fileLines protected property

protected array $fileLines
return array

$filename protected property

protected string $filename
return string

$shouldSort protected property

protected bool $shouldSort
return boolean