本文整理匯總了PHP中Import::L方法的典型用法代碼示例。如果您正苦於以下問題:PHP Import::L方法的具體用法?PHP Import::L怎麽用?PHP Import::L使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Import
的用法示例。
在下文中一共展示了Import::L方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: __construct
public function __construct(&$system)
{
parent::__construct($system);
$system->config->ucenter();
if (!defined('UC_API')) {
K::M('system/logs')->error('Ucenter已經開啟,但未能正確配置');
}
Import::L('uc_client/client.php');
}
示例2: weibo_url
<?php
/**
* Copy Right IJH.CC
* Each engineer has a duty to keep the code elegant
* $Id$
*/
Import::L('weibo/SaeTOAuthV2.php');
class Mdl_Member_Weibo extends Model
{
protected $_type_id = 2;
//微博是2
public function weibo_url()
{
$cfg = K::$system->config->get('connect');
if (defined('IN_MOBILE')) {
$mobile = K::$system->config->get('mobile');
$callback = $mobile['url'] . '/' . K::M('helper/link')->mklink('passport:weibocallback');
} else {
$site = K::$system->config->get('site');
$callback = $site['siteurl'] . '/' . K::M('helper/link')->mklink('passport:weibocallback');
}
if (empty($cfg['weibo_is_open'])) {
$this->err->add('很抱歉網站管理員還未開啟微博登錄功能', 201);
} else {
$o = new SaeTOAuthV2($cfg['weibo_app_id'], $cfg['weibo_app_key']);
$code_url = $o->getAuthorizeURL($callback);
return $code_url;
}
return false;
}
示例3: __construct
<?php
/**
* Copy Right TTPET.COM
* Each engineer has a duty to keep the code elegant
* $Id mail.mdl.php shzhrui<anhuike@gmail.com>$
*/
Import::L('phpmailer/class.phpmailer.php');
class Mdl_Helper_Mail extends PHPMailer
{
protected $from_mail = 'anhuike@qq.com';
protected $from_name = '江湖婚慶門戶係統';
private $_datetime;
private $_email = null;
public function __construct(&$system)
{
parent::__construct(true);
$this->CharSet = 'UTF-8';
$cfg = $system->config->get('mail');
$site = $system->config->get('site');
if (strtolower($cfg['mode']) == 'smtp') {
$this->IsSMTP();
$this->Host = $cfg['smtp']['host'];
$this->Port = $cfg['smtp']['port'];
$this->SMTPAuth = true;
$this->Username = $cfg['smtp']['uname'];
$this->Password = $cfg['smtp']['passwd'];
} else {
$this->IsMail();
}
$this->from_mail = $cfg['sender'];