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


PHP Utility::decrypt方法代码示例

本文整理汇总了PHP中Utility::decrypt方法的典型用法代码示例。如果您正苦于以下问题:PHP Utility::decrypt方法的具体用法?PHP Utility::decrypt怎么用?PHP Utility::decrypt使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Utility的用法示例。


在下文中一共展示了Utility::decrypt方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 public function __construct($parent, $config = null, $params = null)
 {
     $this->directoryMask = 'Y/m-F';
     $this->config = !is_null($config) ? $config : getConfig()->get();
     $utilityObj = new Utility();
     $this->cx = new CloudExperience($utilityObj->decrypt($this->config->credentials->cxKey), $utilityObj->decrypt($this->config->credentials->cxSecret));
     $this->cx->setAccessToken($utilityObj->decrypt($this->config->credentials->cxToken));
     $this->parent = $parent;
 }
开发者ID:gg1977,项目名称:frontend,代码行数:9,代码来源:FileSystemCXBase.php

示例2: __construct

 public function __construct($parent, $config = null, $params = null)
 {
     $this->config = !is_null($config) ? $config : getConfig()->get();
     $this->directoryMask = 'Y_m_F';
     $utilityObj = new Utility();
     $oauth = new Dropbox_OAuth_PHP($utilityObj->decrypt($this->config->credentials->dropboxKey), $utilityObj->decrypt($this->config->credentials->dropboxSecret));
     $oauth->setToken(array('token' => $utilityObj->decrypt($this->config->credentials->dropboxToken), 'token_secret' => $utilityObj->decrypt($this->config->credentials->dropboxTokenSecret)));
     $this->dropbox = new Dropbox_API($oauth, Dropbox_API::ROOT_SANDBOX);
     $this->dropboxFolder = $this->config->dropbox->dropboxFolder;
     $this->parent = $parent;
 }
开发者ID:gg1977,项目名称:frontend,代码行数:11,代码来源:FileSystemDropboxBase.php

示例3: __construct

 /**
  * Constructor
  *
  * @return void
  */
 public function __construct($config = null, $params = null)
 {
     $this->config = !is_null($config) ? $config : getConfig()->get();
     if (!is_null($params) && isset($params['fs'])) {
         $this->fs = $params['fs'];
     } else {
         $utilityObj = new Utility();
         $this->fs = new AmazonS3($utilityObj->decrypt($this->config->credentials->awsKey), $utilityObj->decrypt($this->config->credentials->awsSecret));
     }
     $this->bucket = $this->config->aws->s3BucketName;
 }
开发者ID:nicolargo,项目名称:frontend,代码行数:16,代码来源:FileSystemS3.php

示例4: __construct

 public function __construct($parent, $config = null, $params = null)
 {
     $this->directoryMask = 'Y-m-F';
     $this->config = !is_null($config) ? $config : getConfig()->get();
     $utilityObj = new Utility();
     // TODO encrypt
     $this->box = new Box_Rest_Client($utilityObj->decrypt($this->config->credentials->boxKey));
     $this->box->auth_token = $utilityObj->decrypt($this->config->credentials->boxToken);
     $this->boxFolderId = $this->config->box->boxFolderId;
     $this->parent = $parent;
 }
开发者ID:gg1977,项目名称:frontend,代码行数:11,代码来源:FileSystemBoxBase.php

示例5: __construct

 /**
  * Constructor
  *
  * @return void
  */
 public function __construct($config = null, $params = null)
 {
     $this->config = !is_null($config) ? $config : getConfig()->get();
     $utilityObj = new Utility();
     if (!is_null($params) && isset($params['db'])) {
         $this->db = $params['db'];
     } else {
         $this->db = new AmazonSDB($utilityObj->decrypt($this->config->credentials->awsKey), $utilityObj->decrypt($this->config->credentials->awsSecret));
     }
     $this->domainPhoto = $this->config->aws->simpleDbDomain;
     $this->domainAction = $this->config->aws->simpleDbDomain . 'Action';
     $this->domainActivity = $this->config->aws->simpleDbDomain . 'Activity';
     $this->domainAlbum = $this->config->aws->simpleDbDomain . 'Album';
     $this->domainCredential = $this->config->aws->simpleDbDomain . 'Credential';
     $this->domainGroup = $this->config->aws->simpleDbDomain . 'Group';
     $this->domainUser = $this->config->aws->simpleDbDomain . 'User';
     $this->domainTag = $this->config->aws->simpleDbDomain . 'Tag';
     $this->domainWebhook = $this->config->aws->simpleDbDomain . 'Webhook';
     if (isset($this->config->user)) {
         $this->owner = $this->config->user->email;
     }
 }
开发者ID:nicolargo,项目名称:frontend,代码行数:27,代码来源:DatabaseSimpleDb.php

示例6: __construct

 /**
  * Constructor
  *
  * @return void
  */
 public function __construct($config = null, $params = null)
 {
     $this->config = !is_null($config) ? $config : getConfig()->get();
     $mysql = $this->config->mysql;
     if (!is_null($params) && isset($params['db'])) {
         $this->db = $params['db'];
     } else {
         $utilityObj = new Utility();
         EpiDatabase::employ('mysql', $mysql->mySqlDb, $mysql->mySqlHost, $mysql->mySqlUser, $utilityObj->decrypt($mysql->mySqlPassword));
         $this->db = getDatabase();
     }
     foreach ($mysql as $key => $value) {
         $this->{$key} = $value;
     }
     if (isset($this->config->user)) {
         $this->owner = $this->config->user->email;
     }
 }
开发者ID:jjdelc,项目名称:frontend,代码行数:23,代码来源:DatabaseMySql.php

示例7: Utility

<?php

try {
    $utilityObj = new Utility();
    $sql = <<<SQL
  CREATE DATABASE IF NOT EXISTS `{$this->mySqlDb}`
SQL;
    $pdo = new PDO(sprintf('%s:host=%s', 'mysql', $this->mySqlHost), $this->mySqlUser, $utilityObj->decrypt($this->mySqlPassword));
    $pdo->exec($sql);
    $sql = <<<SQL
  CREATE TABLE IF NOT EXISTS `{$this->mySqlTablePrefix}action` (
    `id` varchar(6) NOT NULL,
    `owner` varchar(127) NOT NULL,
    `actor` varchar(127) NOT NULL,
    `appId` varchar(255) DEFAULT NULL,
    `targetId` varchar(255) DEFAULT NULL,
    `targetType` varchar(255) DEFAULT NULL,
    `email` varchar(255) DEFAULT NULL,
    `name` varchar(255) DEFAULT NULL,
    `avatar` varchar(255) DEFAULT NULL,
    `website` varchar(255) DEFAULT NULL,
    `targetUrl` varchar(1000) DEFAULT NULL,
    `permalink` varchar(1000) DEFAULT NULL,
    `type` varchar(255) DEFAULT NULL,
    `value` varchar(255) DEFAULT NULL,
    `datePosted` varchar(255) DEFAULT NULL,
    `status` int(11) DEFAULT NULL,
    PRIMARY KEY `owner` (`owner`,`id`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
SQL;
    mysql_base($sql);
开发者ID:gg1977,项目名称:frontend,代码行数:31,代码来源:mysql-base.php


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