本文整理汇总了PHP中ModuleManager::checkExtension方法的典型用法代码示例。如果您正苦于以下问题:PHP ModuleManager::checkExtension方法的具体用法?PHP ModuleManager::checkExtension怎么用?PHP ModuleManager::checkExtension使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ModuleManager
的用法示例。
在下文中一共展示了ModuleManager::checkExtension方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
<?php
ModuleManager::checkExtension('mcrypt');
abstract class CipherMode
{
const CM_OBC = 'obc';
const CM_ECB = 'ecb';
const CM_CBC = 'cbc';
const CM_CFB = 'cfb';
}
/**
* @brief CryptoCipher class
*
* Encrypts and decrypts strings, possibly armored in base64. The data to
* be encrypted is tagged with the length of the string as a 32bit unsigned
* integer, allowing the string to be safely be decrypted back to its
* original length and stripped of the PKCS7 padding.
*
* The rawencrypt() and rawdecrypt() methods does not do anything to pad
* or unpad the data.
*/
class CryptoCipher
{
private $iv;
private $td;
/**
* Constructor, accepts the name of the cipher and the key to use.
*
* @param string $cipher The cipher to use
* @param string $key The key to use for encrypting/decrypting
* @param string $mode The cipher mode
示例2: __construct
<?php
ModuleManager::checkExtension('uuid');
/**
* @class Uuid
* @brief UUID generation
*
* @author Christopher Vagnetoft <noccy.com>
*/
class Uuid
{
const UUID_V1 = 1;
const UUID_V2 = 2;
const UUID_V3 = 3;
const UUID_V4 = 4;
const UUID_V5 = 5;
const LENGTH = 36;
///< length of a UUID
const USE_PECL_MAKE = 'make';
const USE_PECL_CREATE = 'create';
const USE_PHP = 'php';
static $urand = null;
static $uobject = null;
static $init = false;
private $version = null;
private static $method = 'null';
protected $uuid;
public function __construct($version = Uuid::UUID_V4)
{
$this->uuid = Uuid::generate($version);
$this->version = $version;
示例3:
<?php
ModuleManager::checkExtension('ncurses', true);
ModuleManager::load('lepton.ui.curses.application');
示例4:
<?php
ModuleManager::checkExtension('php_gtk', true);