PHP 클래스 Piwik\SettingsServer

파일 보기 프로젝트 열기: piwik/piwik 1 사용 예제들

공개 메소드들

메소드 설명
getMemoryLimitValue ( ) : integer | boolean Get php memory_limit (in Megabytes)
isArchivePhpTriggered ( ) : boolean Returns true if the current script execution was triggered by the cron archiving script.
isGdExtensionEnabled ( ) : boolean Returns true if the GD PHP extension is available, false if otherwise.
isIIS ( ) : boolean Returns true if running on Microsoft IIS 7 (or above), false if otherwise.
isTimezoneSupportEnabled ( ) : boolean Returns true if this PHP version/build supports timezone manipulation (e.g., php >= 5.2, or compiled with **EXPERIMENTAL_DATE_SUPPORT=1** for php < 5.2).
isTrackerApiRequest ( ) : boolean Returns true if the current request is a Tracker request.
isWindows ( ) : boolean Returns true if running on a Windows operating system, false if otherwise.
raiseMemoryLimitIfNecessary ( ) : boolean Raise PHP memory limit if below the minimum required
setIsNotTrackerApiRequest ( ) Set the current request is not a tracker API request
setIsTrackerApiRequest ( ) Mark the current request as a Tracker API request
setMaxExecutionTime ( integer $executionTime ) Set maximum script execution time.

보호된 메소드들

메소드 설명
setMemoryLimit ( integer $minimumMemoryLimit ) : boolean Set PHP memory limit

메소드 상세

getMemoryLimitValue() 공개 정적인 메소드

Prior to PHP 5.2.1, or on Windows, --enable-memory-limit is not a compile-time default, so ini_get('memory_limit') may return false.
또한 보기: http://www.php.net/manual/en/faq.using.php#faq.using.shorthandbytes
public static getMemoryLimitValue ( ) : integer | boolean
리턴 integer | boolean memory limit in megabytes, or false if there is no limit

isArchivePhpTriggered() 공개 정적인 메소드

Helpful for error handling: directly throw error without HTML (eg. when DB is down).
public static isArchivePhpTriggered ( ) : boolean
리턴 boolean

isGdExtensionEnabled() 공개 정적인 메소드

_Note: ImageGraph and the sparkline report visualization depend on the GD extension._
public static isGdExtensionEnabled ( ) : boolean
리턴 boolean

isIIS() 공개 정적인 메소드

Returns true if running on Microsoft IIS 7 (or above), false if otherwise.
public static isIIS ( ) : boolean
리턴 boolean

isTimezoneSupportEnabled() 공개 정적인 메소드

Returns true if this PHP version/build supports timezone manipulation (e.g., php >= 5.2, or compiled with **EXPERIMENTAL_DATE_SUPPORT=1** for php < 5.2).
public static isTimezoneSupportEnabled ( ) : boolean
리턴 boolean

isTrackerApiRequest() 공개 정적인 메소드

Returns true if the current request is a Tracker request.
public static isTrackerApiRequest ( ) : boolean
리턴 boolean true if the current request is a Tracking API Request (ie. piwik.php)

isWindows() 공개 정적인 메소드

Returns true if running on a Windows operating system, false if otherwise.
부터: 0.6.5
public static isWindows ( ) : boolean
리턴 boolean

raiseMemoryLimitIfNecessary() 공개 정적인 메소드

Raise PHP memory limit if below the minimum required
public static raiseMemoryLimitIfNecessary ( ) : boolean
리턴 boolean true if set; false otherwise

setIsNotTrackerApiRequest() 공개 정적인 메소드

Set the current request is not a tracker API request
public static setIsNotTrackerApiRequest ( )

setIsTrackerApiRequest() 공개 정적인 메소드

Mark the current request as a Tracker API request
public static setIsTrackerApiRequest ( )

setMaxExecutionTime() 공개 정적인 메소드

Set maximum script execution time.
public static setMaxExecutionTime ( integer $executionTime )
$executionTime integer max execution time in seconds (0 = no limit)

setMemoryLimit() 보호된 정적인 메소드

Note: system settings may prevent scripts from overriding the master value
protected static setMemoryLimit ( integer $minimumMemoryLimit ) : boolean
$minimumMemoryLimit integer
리턴 boolean true if set; false otherwise