当前位置: 首页>>代码示例>>PHP>>正文


PHP ModuleManager::checkExtension方法代码示例

本文整理汇总了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
开发者ID:noccy80,项目名称:lepton-ng,代码行数:31,代码来源:crypto.php

示例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;
开发者ID:noccy80,项目名称:lepton-ng,代码行数:31,代码来源:uuid.php

示例3:

<?php

ModuleManager::checkExtension('ncurses', true);
ModuleManager::load('lepton.ui.curses.application');
开发者ID:noccy80,项目名称:lepton-ng,代码行数:4,代码来源:curses.php

示例4:

<?php

ModuleManager::checkExtension('php_gtk', true);
开发者ID:noccy80,项目名称:lepton-ng,代码行数:3,代码来源:gtk.php


注:本文中的ModuleManager::checkExtension方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。