本文整理汇总了PHP中keke_lang_class::load_lang_class方法的典型用法代码示例。如果您正苦于以下问题:PHP keke_lang_class::load_lang_class方法的具体用法?PHP keke_lang_class::load_lang_class怎么用?PHP keke_lang_class::load_lang_class使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类keke_lang_class
的用法示例。
在下文中一共展示了keke_lang_class::load_lang_class方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: get_instance
<?php
keke_lang_class::load_lang_class('keke_auth_realname_class');
class keke_auth_realname_class extends keke_auth_base_class
{
public static function get_instance($code = 'realname')
{
static $obj = null;
if ($obj == null) {
$obj = new keke_auth_realname_class($code);
}
return $obj;
}
public function __construct($code = 'realname')
{
parent::__construct($code);
$this->_primary_key = 'realname_a_id';
$this->_tab_obj = keke_table_class::get_instance($this->_auth_table_name);
}
public static function get_auth_step($step = null, $arrAuthInfo = array())
{
if ($step) {
$step = $step;
} elseif ($arrAuthInfo) {
$arrAuthInfo['auth_status'] and $step = "step3" or $step = "step2";
} else {
$step = 'step1';
}
return $step;
}
public function add_auth($data, $is_jump = true)
示例2: array
<?php
keke_lang_class::load_lang_class('service_pay_return_class');
final class service_pay_return_class extends pay_return_base_class
{
function __construct($charge_type, $model_id = '', $uid = '', $obj_id = '', $order_id = '', $total_fee = '')
{
parent::__construct($charge_type, $model_id, $uid, $obj_id, $order_id, $total_fee);
}
function order_charge()
{
global $_K;
$order_id = $this->_order_id;
$sid = $this->_obj_id;
$uid = $this->_uid;
$user_info = $this->_userinfo;
$order_info = db_factory::get_one(sprintf(" select order_status,order_uid,order_username,seller_uid,seller_username from %switkey_order where order_id='%d'", TABLEPRE, $order_id));
$url = $_K['siteurl'] . "/index.php?do=user&view=finance&op=order&obj_type=service&role=2&order_id=" . $order_id;
$s_order_link = "<a href=\"" . $_K['siteurl'] . "/index.php?do=user&view=finance&op=order&obj_type=service&role=1&order_id=" . $order_id . "\">" . $order_info['order_name'] . "</a>";
$b_order_link = "<a href=\"" . $_K['siteurl'] . "/index.php?do=user&view=finance&op=order&obj_type=service&role=2&order_id=" . $order_id . "\">" . $order_info['order_name'] . "</a>";
if ($order_info['order_status'] == 'wait') {
$service_info = keke_shop_class::get_service_info($sid);
if ($service_info[service_status] == '2') {
$data = array(':service_id' => $service_info['service_id'], ':title' => $service_info['title']);
keke_finance_class::init_mem('buy_service', $data);
$this->_total_fee > 0 and $res = keke_finance_class::cash_out($uid, $this->_total_fee, 'buy_service', '0', 'service', $order_id);
if ($res) {
db_factory::execute(sprintf(" update %switkey_order set order_status='ok' where order_id='%d'", TABLEPRE, $order_id));
$v_arr = array($_lang['user_msg'] => $_lang['you'], $_lang['action'] => $_lang['haved_confirm_pay'], $_lang['order_id'] => $order_id, $_lang['order_link'] => $b_order_link);
keke_shop_class::notify_user($order_info['order_uid'], $order_info['order_username'], "order_change", $_lang['goods_order_confirm_pay'], $v_arr);
$v_arr = array($_lang['user_msg'] => $order_info['order_username'], $_lang['action'] => $_lang['haved_confirm_pay'], $_lang['order_id'] => $order_id, $_lang['order_link'] => $s_order_link);
示例3: get_instance
<?php
keke_lang_class::load_lang_class('sreward_task_class');
class sreward_task_class extends keke_task_class
{
public $_task_status_arr;
public $_work_status_arr;
public $_delay_rule;
public $_agree_id;
protected $_inited = false;
public static function get_instance($task_info)
{
static $obj = null;
if ($obj == null) {
$obj = new sreward_task_class($task_info);
}
return $obj;
}
public function __construct($task_info)
{
parent::__construct($task_info);
$this->_task_status == '6' || $this->_task_status == '8' and $this->_agree_id = db_factory::get_count(sprintf(" select agree_id from %switkey_agreement where task_id='%d'", TABLEPRE, $this->_task_id));
$this->init();
}
public function init()
{
if (!$this->_inited) {
$this->status_init();
$this->delay_rule_init();
$this->wiki_priv_init();
$this->mark_init();
示例4: get_instance
<?php
keke_lang_class::load_lang_class('keke_prom_class');
class keke_prom_class
{
public $_prom_open;
public $_prom_period;
public $_auth;
public static function get_instance()
{
static $obj = null;
if ($obj == null) {
$obj = new keke_prom_class();
}
return $obj;
}
public function __construct()
{
global $kekezu;
$this->_prom_open = intval($kekezu->_sys_config['prom_open']);
$this->_prom_period = intval($kekezu->_sys_config['prom_period']);
$this->auth_init();
}
public function auth_init()
{
$reg_config = $this->get_prom_rule("reg");
$this->_auth = $reg_config['auth'];
}
public static function get_prom_rule($prom_code)
{
$p_config = db_factory::get_one(sprintf(" select * from %switkey_prom_rule where prom_code='%s'", TABLEPRE, $prom_code));
示例5: __construct
<?php
keke_lang_class::load_lang_class('keke_auth_base_class');
abstract class keke_auth_base_class
{
public $_auth_item;
public $_auth_code;
public $_auth_name;
public $_auth_obj;
public $_auth_table_name;
public $_tab_obj;
public $_primary_key;
public function __construct($auth_code)
{
$this->_auth_code = $auth_code;
$this->_auth_name = $auth_code . "_auth";
$this->_auth_table_name = "witkey_auth_" . $auth_code;
$this->_tab_obj = keke_table_class::get_instance($this->_auth_table_name);
}
public static function get_auth_item($auth_code = null, $find_str = null, $is_open = false, $w = null, $cache = true)
{
global $_cache_obj;
$auth_code && is_array($auth_code) and $auth_code = implode(",", $auth_code);
$auth_code and (is_array($auth_code) and $where = " auth_code in ('{$auth_code}') " or $where = " auth_code = '{$auth_code}'") or $where = " 1 = 1";
$find_str and $fds = $find_str or $fds = '*';
$is_open and $where .= " and auth_open=1 ";
$w and $where .= " and " . $w;
$cache == true and $c = null or $c = 0;
$auth_item = kekezu::get_table_data($fds, "witkey_auth_item", $where, 'listorder asc', '', '', 'auth_code', $c);
if ($auth_code && !is_array($auth_code)) {
return $auth_item[$auth_code];
示例6: get_table_obj
<?php
keke_lang_class::load_lang_class('keke_payitem_class');
class keke_payitem_class
{
public static function get_table_obj($table = 'witkey_payitem')
{
return keke_table_class::get_instance($table);
}
public static function get_payitem_config($user_type = null, $model_code = null, $item_code = null, $pk = null, $is_open = 1)
{
global $kekezu;
$is_open == 1 and $where = " and is_open={$is_open}";
$pk or $pk = "item_code";
$payitem_list = kekezu::get_table_data("*", "witkey_payitem", "1=1 {$where} ", "", "", "", $pk, 3600);
if ($user_type) {
foreach ($payitem_list as $k => $v) {
if ($v['user_type'] != $user_type) {
unset($payitem_list[$k]);
}
}
}
if ($model_code) {
foreach ($payitem_list as $k => $v) {
if (strpos($v['model_code'], $model_code) === FALSE) {
unset($payitem_list[$k]);
}
}
}
if ($item_code) {
$payitem_list[$item_code];
示例7: intval
<?php
keke_lang_class::load_lang_class('keke_register_class');
class keke_register_class
{
protected $_space_obj;
protected $_member_obj;
protected $_sys_config;
protected $_reg_username;
protected $_reg_type;
public $_reg_pwd;
protected $_reg_email;
protected $_reg_ip;
protected $_message_obj;
protected $_check_code;
protected $_oltime_obj;
protected $_shop_obj;
function __construct($reg_type = 1)
{
global $kekezu;
$this->_space_obj = new Keke_witkey_space_class();
$this->_member_obj = new Keke_witkey_member_class();
$this->_sys_config = $kekezu->_sys_config;
$this->_message_obj = new keke_msg_class();
$this->_oltime_obj = new Keke_witkey_member_oltime_class();
$this->_shop_obj = new Keke_witkey_shop_class();
$this->_reg_ip = kekezu::get_ip();
$this->_reg_type = intval($reg_type);
}
//增加$user_type参数
function user_register($reg_username, $reg_pwd, $reg_email, $reg_code, $check_code = true, $old_pwd = null, $reg_user_type, $reg_user_type_xf, $is_oauth = null)
示例8: get_instance
<?php
keke_lang_class::load_lang_class('goods_report_class');
class goods_report_class extends keke_report_class
{
public static function get_instance($report_id, $report_info = null, $obj_info = null, $user_info = null, $to_userinfo = null)
{
static $obj = null;
if ($obj == null) {
$obj = new goods_report_class($report_id, $report_info, $obj_info, $user_info, $to_userinfo);
}
return $obj;
}
public function __construct($report_id, $report_info, $obj_info, $user_info, $to_userinfo)
{
parent::__construct($report_id, $report_info, $obj_info, $user_info, $to_userinfo);
}
public function process_rights($op_result, $type)
{
global $_lang;
$trans_name = $this->get_transrights_name($this->_report_type);
$op_result = $this->op_result_format($op_result);
$g_info = $this->user_role('gz');
$w_info = $this->user_role('wk');
switch ($op_result['action']) {
case "pass":
if ($this->_process_can['sharing']) {
$total_cash = floatval($this->_obj_info['cash']);
$gz_get = floatval($op_result['gz_get']);
$wk_get = floatval($op_result['wk_get']);
if ($total_cash != $gz_get + $wk_get) {
示例9: get_instance
<?php
keke_lang_class::load_lang_class('keke_auth_mobile_class');
class keke_auth_mobile_class extends keke_auth_base_class
{
public static function get_instance($code = 'mobile')
{
static $obj = null;
if ($obj == null) {
$obj = new keke_auth_mobile_class($code);
}
return $obj;
}
public function __construct($code = 'mobile')
{
parent::__construct($code);
$this->_primary_key = 'mobile_a_id';
$this->_tab_obj = keke_table_class::get_instance($this->_auth_table_name);
}
public static function get_auth_step($step = null, $auth_info = array())
{
if ($step) {
$step = $step;
} elseif ($auth_info) {
$auth_info['auth_status'] and $step = "step3" or $step = "step2";
} else {
$step = 'step1';
}
return $step;
}
public function add_auth($data, $file_name = '')
示例10: defined
<?php
keke_lang_class::load_lang_class('keke_user_avatar_class');
defined("IN_KEKE") || defined("ADMIN_KEKE") or die("Access Denied");
define('_DATADIR', S_ROOT . "data/");
global $_K;
define('_DATAURL', $_K['siteurl'] . "/data");
class keke_user_avatar_class extends keke_user_class
{
static function uploadavatar($uid)
{
@header("Expires: 0");
@header("Cache-Control: private, post-check=0, pre-check=0, max-age=0", FALSE);
@header("Pragma: no-cache");
if (empty($uid)) {
return -1;
}
if (empty($_FILES['Filedata'])) {
return -3;
}
list($width, $height, $type, $attr) = getimagesize($_FILES['Filedata']['tmp_name']);
$imgtype = array(1 => '.gif', 2 => '.jpg', 3 => '.png');
$filetype = $imgtype[$type];
if (!$filetype) {
$filetype = '.jpg';
}
$tmpavatar = _DATADIR . './tmp/upload' . $uid . $filetype;
file_exists($tmpavatar) && @unlink($tmpavatar);
if (@copy($_FILES['Filedata']['tmp_name'], $tmpavatar) || @move_uploaded_file($_FILES['Filedata']['tmp_name'], $tmpavatar)) {
@unlink($_FILES['Filedata']['tmp_name']);
list($width, $height, $type, $attr) = getimagesize($tmpavatar);
示例11: user_auth_info
<?php
keke_lang_class::load_lang_class('keke_auth_fac_class');
class keke_auth_fac_class
{
public static function user_auth_info($uid)
{
$auth_list = kekezu::get_table_data("*,max(auth_status) auth_status", "witkey_auth_record", "uid='{$uid}'", '', 'auth_code', '', 'auth_code');
return $auth_list;
}
public static function get_submit_auth_record($uid, $auth_status = '1')
{
$auth_item = keke_auth_base_class::get_auth_item();
$auth_code = array_keys($auth_item);
return self::auth_check($auth_code, $uid, $auth_status);
}
public static function get_auth_imghtm($auth_code, $uid)
{
global $_lang;
$auth_list = self::user_auth_info($uid);
$config_list = keke_auth_bank_class::get_auth_item($auth_code, 'auth_code,auth_title,auth_small_ico,auth_small_n_ico,auth_open', 1);
$img_list = '';
foreach ($config_list as $c) {
if (!$c['auth_open']) {
continue;
}
$str = '';
$str .= '<img src="';
$str .= $auth_list[$c['auth_code']]['auth_status'] ? $c['auth_small_ico'] : $c['auth_small_n_ico'];
$str .= '" align="absmiddle" title="' . $c['auth_title'];
$str .= $auth_list[$c['auth_code']]['auth_status'] ? $_lang['has_pass'] : $_lang['not_pass'];
示例12: array
<?php
keke_lang_class::load_lang_class('keke_page_class');
class keke_page_class
{
public $_style = 'BootPagination';
public $_ajax = 0;
public $_ajax_dom;
public $_cove = 1;
public $_param;
public $_data_arr = array();
public $_static;
function setStyle($value)
{
$this->_style = $value;
}
function setAjax($value)
{
$this->_ajax = $value;
}
function setAjaxCove($value)
{
$this->_cove = intval($value);
}
function setAjaxDom($value)
{
$this->_ajax_dom = $value;
}
function setParam($value)
{
$this->_param = $value;
示例13: pingbi_work
public function pingbi_work($work_id, $type)
{
keke_lang_class::load_lang_class('preward_report_class');
global $_K, $kekezu;
global $_lang;
$this->_task_info['task_status'] == 8 and kekezu::admin_show_msg('操作提示', "index.php?do=trans&view=report&type={$type}", "3", "当前任务不能屏蔽稿件", "warning");
$work_info = $this->_task_obj->get_task_work($work_id);
$work_info['work_status'] != 0 and kekezu::admin_show_msg('操作提示', "index.php?do=trans&view=report&type={$type}", "3", "当前稿件雇主已选择,不能屏蔽此稿件", "warning");
$this->_task_obj->set_work_status($work_id, 8);
}
示例14: get_time_rule
<?php
keke_lang_class::load_lang_class('keke_task_config');
class keke_task_config
{
public static function get_time_rule($model_id, $cache_time = null)
{
return kekezu::get_table_data("*", "witkey_task_time_rule", "model_id='{$model_id}'", "rule_cash", "", "", "", "", $cache_time);
}
public static function get_delay_rule($model_id, $cache_time = null)
{
return kekezu::get_table_data("*", "witkey_task_delay_rule", "model_id='{$model_id}'", "defer_times", "", "", "", $cache_time);
}
public static function set_time_rule($model_id, $timeOld = array(), $timeNew = array())
{
if (is_array($timeOld)) {
foreach ($timeOld as $k => $v) {
$res = db_factory::execute(sprintf(" update %switkey_task_time_rule set rule_day='%d',rule_cash='%s' where day_rule_id='%d' and model_id='%d'", TABLEPRE, $v['rule_day'], $v['rule_cash'], $k, $model_id));
}
}
if (is_array($timeNew)) {
foreach ($timeNew as $v2) {
!empty($v2['rule_day']) && !empty($v2['rule_cash']) and $res = db_factory::execute(sprintf(" insert into %switkey_task_time_rule values('','%f','%d','%d')", TABLEPRE, floatval($v2['rule_cash']), intval($v2['rule_day']), $model_id));
}
}
return $res;
}
public static function set_delay_rule($model_id, $delayOld = array(), $delayNew = array())
{
if (is_array($delayOld)) {
foreach ($delayOld as $k => $v) {
示例15: __construct
<?php
keke_lang_class::load_lang_class('keke_report_class');
abstract class keke_report_class
{
public $_report_info;
public $_obj_info;
public $_user_info;
public $_to_user_info;
public $_report_id;
public $_report_type;
public $_report_status;
public $_obj;
public $_credit_info;
public $_process_can;
public $_msg_obj;
public $_task_obj;
public $_task_info;
public $_model_info;
public function __construct($report_id, $report_info = null, $obj_info = null, $user_info = null, $to_userinfo = null)
{
$report_info or $report_info = $this->get_report_info($report_id);
$this->_msg_obj = new keke_msg_class();
$this->_report_info = $report_info;
$this->_report_id = $report_id;
$this->_report_status = $report_info['report_status'];
$this->_report_type = $report_info['report_type'];
$this->_obj = $report_info['obj'];
$user_info and $this->_user_info = $user_info or $this->_user_info = kekezu::get_user_info($report_info['uid']);
$to_userinfo and $this->_to_user_info = $to_userinfo or $this->_to_user_info = kekezu::get_user_info($report_info['to_uid']);
$obj_info and $this->_obj_info = $obj_info or $this->_obj_info = $this->obj_info_init($report_info, $user_info);