| [ Index ] |
PHP Cross Reference of MantisBT |
[Source view] [Print] [Project Stats]
File containing the ezcBaseFeatures class.
| Copyright: | Copyright (C) 2005-2009 eZ Systems AS. All rights reserved. |
| License: | http://ez.no/licenses/new_bsd New BSD License |
| Version: | 1.8 |
| File Size: | 365 lines (11 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
ezcBaseFeatures:: (13 methods):
supportsLink()
supportsSymLink()
supportsUserId()
hasImageConvert()
getImageConvertExecutable()
hasImageIdentify()
getImageIdentifyExecutable()
hasExtensionSupport()
hasFunction()
classExists()
os()
findExecutableInPath()
reset()
Class: ezcBaseFeatures - X-Ref
Provides methods needed to check for features.| supportsLink() X-Ref |
| Determines if hardlinks are supported. return: bool |
| supportsSymLink() X-Ref |
| Determines if symlinks are supported. return: bool |
| supportsUserId() X-Ref |
| Determines if posix uids are supported. return: bool |
| hasImageConvert() X-Ref |
| Determines if the ImageMagick convert utility is installed. return: bool |
| getImageConvertExecutable() X-Ref |
| Returns the path to the ImageMagick convert utility. On Linux, Unix,... it will return something like: /usr/bin/convert On Windows it will return something like: C:\Windows\System32\convert.exe return: string |
| hasImageIdentify() X-Ref |
| Determines if the ImageMagick identify utility is installed. return: bool |
| getImageIdentifyExecutable() X-Ref |
| Returns the path to the ImageMagick identify utility. On Linux, Unix,... it will return something like: /usr/bin/identify On Windows it will return something like: C:\Windows\System32\identify.exe return: string |
| hasExtensionSupport( $extension, $version = null ) X-Ref |
| Determines if the specified extension is loaded. If $version is specified, the specified extension will be tested also against the version of the loaded extension. Examples: <code> hasExtensionSupport( 'gzip' ); </code> will return true if gzip extension is loaded. <code> hasExtensionSupport( 'pdo_mysql', '1.0.2' ); </code> will return true if pdo_mysql extension is loaded and its version is at least 1.0.2. param: string $extension param: string $version return: bool |
| hasFunction( $functionName ) X-Ref |
| Determines if the specified function is available. Examples: <code> ezcBaseFeatures::hasFunction( 'imagepstext' ); </code> will return true if support for Type 1 fonts is available with your GD extension. param: string $functionName return: bool |
| classExists( $className, $autoload = true ) X-Ref |
| Returns if a given class exists. Checks for a given class name and returns if this class exists or not. Catches the ezcBaseAutoloadException and returns false, if it was thrown. param: string $className The class to check for. param: bool $autoload True to use __autoload(), otherwise false. return: bool True if the class exists. Otherwise false. |
| os() X-Ref |
| Returns the operating system on which PHP is running. This method returns a sanitized form of the OS name, example return values are "Windows", "Mac", "Linux" and "FreeBSD". In all other cases it returns the value of the internal PHP constant PHP_OS. return: string |
| findExecutableInPath( $fileName ) X-Ref |
| Returns the path of the specified executable, if it can be found in the system's path. It scans the PATH enviroment variable based on the OS to find the $fileName. For Windows, the path is with \, not /. If $fileName is not found, it returns null. param: string $fileName return: string |
| reset() X-Ref |
| Reset the cached information. return: void |
| Generated: Thu Jul 28 15:48:31 2011 | Cross-referenced by PHPXref 0.7 |