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


PHP Load::logic方法代码示例

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


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

示例1: ModuleObject

 function ModuleObject($config)
 {
     $this->MasterObject($config);
     Load::logic('live');
     $this->LiveLogic = new LiveLogic($this);
     $this->Execute();
 }
开发者ID:YouthAndra,项目名称:huaitaoo2o,代码行数:7,代码来源:live.mod.php

示例2: ModuleObject

 function ModuleObject($config)
 {
     $this->MasterObject($config);
     Load::logic('vote');
     $this->VoteLogic = new VoteLogic($this);
     $this->Execute();
 }
开发者ID:YouthAndra,项目名称:huaitaoo2o,代码行数:7,代码来源:vote.mod.php

示例3: ModuleObject

 function ModuleObject($config)
 {
     $this->MasterObject($config);
     Load::logic('talk');
     $this->TalkLogic = new TalkLogic($this);
     $this->Execute();
 }
开发者ID:YouthAndra,项目名称:huaitaoo2o,代码行数:7,代码来源:talk.mod.php

示例4: app_check

function app_check($item, $item_id = null)
{
    $app_list = app_get_list();
    if (in_array($item, $app_list)) {
        if (is_null($item_id)) {
            return true;
        }
    } else {
        return false;
    }
    #if NEDU
    if (defined('NEDU_MOYO')) {
        $r = nlogic('feeds.app.jsg')->check_item($item, $item_id);
        if (is_array($r) && $r['checked'] === true) {
            return (bool) $r['result'];
        }
    }
    #endif
    $item = $item == 'company' ? 'cp' : $item;
    if (!Load::logic($item)) {
        return false;
    }
    $class_name = ucwords($item) . 'Logic';
    if (method_exists($class_name, 'is_exists')) {
        $ret = call_user_func(array($class_name, 'is_exists'), $item_id);
        if (empty($ret)) {
            return false;
        }
        return true;
    }
    return false;
}
开发者ID:YouthAndra,项目名称:huaitaoo2o,代码行数:32,代码来源:app.func.php

示例5: MiscLogic

 function MiscLogic()
 {
     $this->Config = jconf::get();
     $this->DatabaseHandler =& Obj::registry('DatabaseHandler');
     Load::logic('other');
     $this->OtherLogic = new OtherLogic();
 }
开发者ID:YouthAndra,项目名称:huaitaoo2o,代码行数:7,代码来源:misc.logic.php

示例6: ModuleObject

 function ModuleObject($config)
 {
     $this->MasterObject($config);
     $this->ShowConfig = jconf::get('show');
     Load::logic('vote');
     $this->VoteLogic = new VoteLogic();
     $this->TopicLogic = jlogic('topic');
     if (MEMBER_ROLE_TYPE != 'admin') {
         if (!$this->Config['vote_open']) {
             $this->Messager("当前站点没有开放投票功能", null);
         }
     }
     $code =& $this->Code;
     ob_start();
     if (!empty($this->Get['vid']) && empty($code)) {
         $code = 'view';
     } else {
         if (empty($code)) {
             $code = 'index';
             if (!empty($this->Get['uid']) && empty($this->Get['view'])) {
                 $this->Get['view'] = 'me';
             }
         }
     }
     if (in_array($code, array('create'))) {
         $this->_check_login();
     }
     if (method_exists('ModuleObject', $code)) {
         $this->{$code}();
     } else {
         $this->index();
     }
     $body = ob_get_clean();
     $this->ShowBody($body);
 }
开发者ID:YouthAndra,项目名称:huaitaoo2o,代码行数:35,代码来源:vote.mod.php

示例7: ModuleObject

	function ModuleObject(& $config)
	{
		$this->MasterObject($config);
		Load::logic('product');
		$this->ProductLogic = new ProductLogic();
		$this->Execute();
	}
开发者ID:pf5512,项目名称:phpstudy,代码行数:7,代码来源:openapi.mod.php

示例8: ModuleObject

 function ModuleObject($config)
 {
     $this->MasterObject($config);
     Load::logic('wall');
     $this->WallLogic = new WallLogic();
     $this->Execute();
 }
开发者ID:YouthAndra,项目名称:huaitaoo2o,代码行数:7,代码来源:wall.mod.php

示例9: MTagLogic

 function MTagLogic()
 {
     Load::logic('topic');
     $this->TopicLogic = new TopicLogic();
     $this->Config = jconf::get();
     $this->DatabaseHandler =& Obj::registry('DatabaseHandler');
 }
开发者ID:YouthAndra,项目名称:huaitaoo2o,代码行数:7,代码来源:tag.logic.php

示例10: MblogLogic

 function MblogLogic()
 {
     Load::logic('topic');
     $this->TopicLogic = new TopicLogic();
     Load::logic("topic_list");
     $this->TopicListLogic = new TopicListLogic();
     $this->Config = jconf::get();
 }
开发者ID:YouthAndra,项目名称:huaitaoo2o,代码行数:8,代码来源:mblog.logic.php

示例11: ModuleObject

 function ModuleObject($config)
 {
     $this->MasterObject($config);
     Load::logic('topic_recommend');
     $this->TopicRecommendLogic = new TopicRecommendLogic();
     $this->TopicLogic = jlogic('topic');
     $this->Execute();
 }
开发者ID:YouthAndra,项目名称:huaitaoo2o,代码行数:8,代码来源:recdtopic.mod.php

示例12: ModuleObject

 function ModuleObject($config)
 {
     $this->MasterObject($config);
     $this->WallId = max(0, (int) $this->Get['wall_id']);
     Load::logic('wall');
     $this->WallLogic = new WallLogic();
     $this->TopicLogic = jlogic('topic');
     $this->Execute();
 }
开发者ID:YouthAndra,项目名称:huaitaoo2o,代码行数:9,代码来源:wall.mod.php

示例13: ModuleObject

 function ModuleObject($config)
 {
     $this->MasterObject($config);
     Load::logic('topic');
     $this->TopicLogic = new TopicLogic($this);
     Mobile::logic('friend');
     $this->FriendLogic = new FriendLogic();
     Mobile::is_login();
     $this->Execute();
 }
开发者ID:YouthAndra,项目名称:huaitaoo2o,代码行数:10,代码来源:friend.mod.php

示例14: ModuleObject

 function ModuleObject($config)
 {
     $this->MasterObject($config);
     if (MEMBER_ID < 1) {
         response_text("请先登录或者注册一个帐号");
     }
     Load::logic('vote');
     $this->VoteLogic = new VoteLogic();
     $this->TopicLogic = jlogic('topic');
     $this->Execute();
 }
开发者ID:YouthAndra,项目名称:huaitaoo2o,代码行数:11,代码来源:app.mod.php

示例15: ModuleObject

 function ModuleObject(&$config)
 {
     $this->MasterObject($config);
     if (!MEMBER_ID) {
         js_alert_output("请先登录或者注册一个帐号");
     }
     Load::logic('live');
     $this->LiveLogic = new LiveLogic();
     Load::logic('talk');
     $this->TalkLogic = new TalkLogic();
     $this->Execute();
 }
开发者ID:YouthAndra,项目名称:huaitaoo2o,代码行数:12,代码来源:item.mod.php


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