PHP Class Pimcore\Tool

Afficher le fichier Open project: pimcore/pimcore Class Usage Examples

Protected Properties

Свойство Type Description
$isFrontend null
$notFoundClassNames array
$validLanguages array

Méthodes publiques

Méthode Description
classExists ( $class ) : boolean
exitWithError ( $message )
getAnonymizedClientIp ( ) : string
getClientIp ( ) : mixed
getCustomViewConfig ( ) : array | boolean
getDefaultLanguage ( ) : null | string
getFallbackLanguagesFor ( $language ) : array
getHostUrl ( string $useProtocol = null ) : string Returns the host URL
getHostname ( ) : string
getHttpClient ( string $type = "Zend_Http_Client", array $options = [] ) : Zend_Http_Client
getHttpData ( $url, array $paramsGet = [], array $paramsPost = [] ) : boolean | string
getLanguageFlagFile ( $language ) : string
getMail ( null $recipients = null, null $subject = null, null $charset = null ) : Mail
getModelClassMapping ( $sourceClassName ) : string
getRequestScheme ( ) : string
getRoutingDefaults ( ) : array
getSupportedLocales ( ) : array | mixed
getValidCacheKey ( string $key ) : string returns a valid cache key/tag string
getValidLanguages ( ) : array
interfaceExists ( $class ) : boolean
isFrontend ( ) : boolean
isFrontentRequestByAdmin ( ) eg. editmode, preview, version preview, always when it is a "frontend-request", but called out of the admin
isHtmlResponse ( Zend_Controller_Response_Abstract $response ) : boolean
isInstaller ( ) : boolean
isValidLanguage ( $language ) : boolean
isValidPath ( $path ) : boolean
useFrontendOutputFilters ( Zend_Controller_Request_Abstract $request ) : boolean

Méthodes protégées

Méthode Description
classInterfaceExists ( $class, $type ) : boolean

Method Details

classExists() public static méthode

public static classExists ( $class ) : boolean
$class
Résultat boolean

classInterfaceExists() protected static méthode

protected static classInterfaceExists ( $class, $type ) : boolean
$class
$type
Résultat boolean

exitWithError() public static méthode

public static exitWithError ( $message )
$message

getAnonymizedClientIp() public static méthode

public static getAnonymizedClientIp ( ) : string
Résultat string

getClientIp() public static méthode

public static getClientIp ( ) : mixed
Résultat mixed

getCustomViewConfig() public static méthode

public static getCustomViewConfig ( ) : array | boolean
Résultat array | boolean

getDefaultLanguage() public static méthode

public static getDefaultLanguage ( ) : null | string
Résultat null | string

getFallbackLanguagesFor() public static méthode

public static getFallbackLanguagesFor ( $language ) : array
$language
Résultat array

getHostUrl() public static méthode

Returns the host URL
public static getHostUrl ( string $useProtocol = null ) : string
$useProtocol string use a specific protocol
Résultat string

getHostname() public static méthode

public static getHostname ( ) : string
Résultat string

getHttpClient() public static méthode

public static getHttpClient ( string $type = "Zend_Http_Client", array $options = [] ) : Zend_Http_Client
$type string
$options array
Résultat Zend_Http_Client

getHttpData() public static méthode

public static getHttpData ( $url, array $paramsGet = [], array $paramsPost = [] ) : boolean | string
$url
$paramsGet array
$paramsPost array
Résultat boolean | string

getLanguageFlagFile() public static méthode

public static getLanguageFlagFile ( $language ) : string
$language
Résultat string

getMail() public static méthode

public static getMail ( null $recipients = null, null $subject = null, null $charset = null ) : Mail
$recipients null
$subject null
$charset null
Résultat Mail

getModelClassMapping() public static méthode

Deprecation:
public static getModelClassMapping ( $sourceClassName ) : string
$sourceClassName
Résultat string

getRequestScheme() public static méthode

public static getRequestScheme ( ) : string
Résultat string

getRoutingDefaults() public static méthode

public static getRoutingDefaults ( ) : array
Résultat array

getSupportedLocales() public static méthode

public static getSupportedLocales ( ) : array | mixed
Résultat array | mixed

getValidCacheKey() public static méthode

returns a valid cache key/tag string
public static getValidCacheKey ( string $key ) : string
$key string
Résultat string

getValidLanguages() public static méthode

public static getValidLanguages ( ) : array
Résultat array

interfaceExists() public static méthode

public static interfaceExists ( $class ) : boolean
$class
Résultat boolean

isFrontend() public static méthode

public static isFrontend ( ) : boolean
Résultat boolean

isFrontentRequestByAdmin() public static méthode

eg. editmode, preview, version preview, always when it is a "frontend-request", but called out of the admin
public static isFrontentRequestByAdmin ( )

isHtmlResponse() public static méthode

public static isHtmlResponse ( Zend_Controller_Response_Abstract $response ) : boolean
$response Zend_Controller_Response_Abstract
Résultat boolean

isInstaller() public static méthode

public static isInstaller ( ) : boolean
Résultat boolean

isValidLanguage() public static méthode

public static isValidLanguage ( $language ) : boolean
$language
Résultat boolean

isValidPath() public static méthode

public static isValidPath ( $path ) : boolean
$path
Résultat boolean

useFrontendOutputFilters() public static méthode

public static useFrontendOutputFilters ( Zend_Controller_Request_Abstract $request ) : boolean
$request Zend_Controller_Request_Abstract
Résultat boolean

Property Details

$isFrontend protected_oe static_oe property

protected static null $isFrontend
Résultat null

$notFoundClassNames protected_oe static_oe property

protected static array $notFoundClassNames
Résultat array

$validLanguages protected_oe static_oe property

protected static array $validLanguages
Résultat array