本文整理汇总了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'];