PHP 클래스 Browscap\Data\Expander

저자: Thomas Müller ([email protected])
파일 보기 프로젝트 열기: browscap/browscap 1 사용 예제들

공개 메소드들

메소드 설명
expand ( Division $division, string $divisionName ) : array
getDataCollection ( ) : DataCollection Get the data collection
getLogger ( ) : Psr\Log\LoggerInterface
getVersionParts ( string $version ) : string[] splits a version into the major and the minor version
parseProperty ( string $value, string $majorVer, string $minorVer ) : string Render the property of a single User Agent
setDataCollection ( DataCollection $collection ) : Expander Set the data collection
setLogger ( Psr\Log\LoggerInterface $logger ) : Expander
trimProperty ( string $propertyValue ) : string | boolean trims the value of a property and converts the string values "true" and "false" to boolean

비공개 메소드들

메소드 설명
checkEngineData ( array $properties, string $message ) checks if platform properties are set inside a properties array
checkPlatformData ( array $properties, string $message ) checks if platform properties are set inside a properties array
expandProperties ( array $allInputDivisions ) : array expands all properties for all useragents to make sure all properties are set and make it possible to skip incomplete properties and remove duplicate definitions
parseChildren ( string $ua, array $uaDataChild, boolean $lite = true, boolean $standard = true ) : array[] Render the children section in a single User Agent block
parseDivision ( Division $division, string $divisionName ) : array Render a single division
parseUserAgent ( array $uaData, boolean $lite, boolean $standard, integer $sortIndex, string $divisionName ) : array Render a single User Agent block

메소드 상세

expand() 공개 메소드

public expand ( Division $division, string $divisionName ) : array
$division Division
$divisionName string
리턴 array

getDataCollection() 공개 메소드

Get the data collection
public getDataCollection ( ) : DataCollection
리턴 DataCollection

getLogger() 공개 메소드

public getLogger ( ) : Psr\Log\LoggerInterface
리턴 Psr\Log\LoggerInterface $logger

getVersionParts() 공개 메소드

splits a version into the major and the minor version
public getVersionParts ( string $version ) : string[]
$version string
리턴 string[]

parseProperty() 공개 메소드

Render the property of a single User Agent
public parseProperty ( string $value, string $majorVer, string $minorVer ) : string
$value string
$majorVer string
$minorVer string
리턴 string

setDataCollection() 공개 메소드

Set the data collection
public setDataCollection ( DataCollection $collection ) : Expander
$collection DataCollection
리턴 Expander

setLogger() 공개 메소드

public setLogger ( Psr\Log\LoggerInterface $logger ) : Expander
$logger Psr\Log\LoggerInterface
리턴 Expander

trimProperty() 공개 메소드

trims the value of a property and converts the string values "true" and "false" to boolean
public trimProperty ( string $propertyValue ) : string | boolean
$propertyValue string
리턴 string | boolean