本文整理汇总了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();
}
示例2: ModuleObject
function ModuleObject($config)
{
$this->MasterObject($config);
Load::logic('vote');
$this->VoteLogic = new VoteLogic($this);
$this->Execute();
}
示例3: ModuleObject
function ModuleObject($config)
{
$this->MasterObject($config);
Load::logic('talk');
$this->TalkLogic = new TalkLogic($this);
$this->Execute();
}
示例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;
}
示例5: MiscLogic
function MiscLogic()
{
$this->Config = jconf::get();
$this->DatabaseHandler =& Obj::registry('DatabaseHandler');
Load::logic('other');
$this->OtherLogic = new OtherLogic();
}
示例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);
}
示例7: ModuleObject
function ModuleObject(& $config)
{
$this->MasterObject($config);
Load::logic('product');
$this->ProductLogic = new ProductLogic();
$this->Execute();
}
示例8: ModuleObject
function ModuleObject($config)
{
$this->MasterObject($config);
Load::logic('wall');
$this->WallLogic = new WallLogic();
$this->Execute();
}
示例9: MTagLogic
function MTagLogic()
{
Load::logic('topic');
$this->TopicLogic = new TopicLogic();
$this->Config = jconf::get();
$this->DatabaseHandler =& Obj::registry('DatabaseHandler');
}
示例10: MblogLogic
function MblogLogic()
{
Load::logic('topic');
$this->TopicLogic = new TopicLogic();
Load::logic("topic_list");
$this->TopicListLogic = new TopicListLogic();
$this->Config = jconf::get();
}
示例11: ModuleObject
function ModuleObject($config)
{
$this->MasterObject($config);
Load::logic('topic_recommend');
$this->TopicRecommendLogic = new TopicRecommendLogic();
$this->TopicLogic = jlogic('topic');
$this->Execute();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}