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


PHP ipsRegistry::isClassLoaded方法代码示例

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


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

示例1: __construct

 /**
  * Constructor
  *
  */
 public function __construct()
 {
     /* Make registry objects */
     $this->registry = ipsRegistry::instance();
     $this->DB = $this->registry->DB();
     $this->settings =& $this->registry->fetchSettings();
     $this->request =& $this->registry->fetchRequest();
     $this->lang = $this->registry->getClass('class_localization');
     $this->member = $this->registry->member();
     $this->memberData =& $this->registry->member()->fetchMemberData();
     $this->cache = $this->registry->cache();
     $this->caches =& $this->registry->cache()->fetchCaches();
     /* Check for class_forums */
     if (ipsRegistry::isClassLoaded('class_forums') !== TRUE) {
         $classToLoad = IPSLib::loadLibrary(IPSLib::getAppDir('forums') . "/sources/classes/forums/class_forums.php", 'class_forums', 'forums');
         $this->registry->setClass('class_forums', new $classToLoad($this->registry));
         $this->registry->class_forums->forumsInit();
     }
     /* Load topic class */
     if (!$this->registry->isClassLoaded('topics')) {
         $classToLoad = IPSLib::loadLibrary(IPSLib::getAppDir('forums') . "/sources/classes/topics.php", 'app_forums_classes_topics', 'forums');
         $this->registry->setClass('topics', new $classToLoad($this->registry));
     }
     /* Language class */
     $this->registry->getClass('class_localization')->loadLanguageFile(array('public_global'), 'core');
     /* Fetch engine class */
     $this->settings['archive_engine'] = $this->settings['archive_engine'] ? $this->settings['archive_engine'] : 'sql';
     /* Load up archive class */
     $classToLoad = IPSLib::loadLibrary(IPS_ROOT_PATH . 'sources/classes/archive/reader/' . $this->settings['archive_engine'] . '.php', 'classes_archive_reader_' . $this->settings['archive_engine']);
     $this->engine = new $classToLoad();
     $this->fields = $this->registry->topics->getPostTableFields();
 }
开发者ID:Advanture,项目名称:Online-RolePlay,代码行数:36,代码来源:reader.php

示例2: __construct

 /**
  * Constructor
  * 
  * @return	@e void
  */
 public function __construct(ipsRegistry $registry)
 {
     /* Get class forums, used for displaying forum names on results */
     if (ipsRegistry::isClassLoaded('class_forums') !== TRUE) {
         $classToLoad = IPSLib::loadLibrary(IPSLib::getAppDir('forums') . "/sources/classes/forums/class_forums.php", 'class_forums', 'forums');
         ipsRegistry::setClass('class_forums', new $classToLoad(ipsRegistry::instance()));
         ipsRegistry::getClass('class_forums')->strip_invisible = 1;
         ipsRegistry::getClass('class_forums')->forumsInit();
     }
     /* Load tagging stuff */
     if (!$registry->isClassLoaded('tags')) {
         require_once IPS_ROOT_PATH . 'sources/classes/tags/bootstrap.php';
         /*noLibHook*/
         $registry->setClass('tags', classes_tags_bootstrap::run('forums', 'topics'));
     }
     /* Get live or archive */
     $this->searchArchives = ipsRegistry::$request['search_app_filters']['forums']['liveOrArchive'] == 'archive' ? true : false;
     if ($this->searchArchives) {
         /* Load up archive class */
         $classToLoad = IPSLib::loadLibrary(IPS_ROOT_PATH . 'sources/classes/archive/reader.php', 'classes_archive_reader');
         $this->archiveReader = new $classToLoad();
         $this->archiveReader->setApp('forums');
         $this->table = $this->archiveReader->getFields();
         $this->table['_table_'] = 'forums_archive_posts';
         $this->table['_prefix_'] = 'p.archive_';
     } else {
         $this->table = array('_table_' => 'posts', '_prefix_' => 'p.', 'pid' => 'pid', 'author_id' => 'author_id', 'author_name' => 'author_name', 'ip_address' => 'ip_address', 'post_date' => 'post_date', 'post' => 'post', 'queued' => 'queued', 'topic_id' => 'topic_id', 'new_topic' => 'new_topic', 'post_bwoptions' => 'post_bwoptions', 'post_key' => 'post_key', 'post_htmlstate' => 'post_htmlstate', 'use_sig' => 'use_sig', 'use_emo' => 'use_emo', 'append_edit' => 'append_edit', 'edit_time' => 'edit_time', 'edit_name' => 'edit_name', 'post_edit_reason' => 'post_edit_reason');
     }
     parent::__construct($registry);
     /* Set up wrapper */
     $this->templates = array('group' => 'search', 'template' => 'searchResultsAsForum');
 }
开发者ID:ConnorChristie,项目名称:GrabViews-Live,代码行数:37,代码来源:format.php

示例3: __construct

 /**
  * Constructor
  * 
  * @return	@e void
  */
 public function __construct(ipsRegistry $registry)
 {
     /* Hard limit - not used in Sphinx but may need to revisit if we bust IN()s */
     //IPSSearchRegistry::set('set.hardLimit', ( ipsRegistry::$settings['search_hardlimit'] ) ? ipsRegistry::$settings['search_hardlimit'] : 200 );
     /* Get class forums, used for displaying forum names on results */
     if (ipsRegistry::isClassLoaded('class_forums') !== TRUE) {
         $classToLoad = IPSLib::loadLibrary(IPSLib::getAppDir('forums') . "/sources/classes/forums/class_forums.php", 'class_forums', 'forums');
         ipsRegistry::setClass('class_forums', new $classToLoad(ipsRegistry::instance()));
         ipsRegistry::getClass('class_forums')->strip_invisible = 1;
         ipsRegistry::getClass('class_forums')->forumsInit();
     }
     /* Get live or archive */
     $this->searchArchives = ipsRegistry::$request['search_app_filters']['forums']['liveOrArchive'] == 'archive' ? true : false;
     if ($this->searchArchives) {
         /* Load up archive class */
         $classToLoad = IPSLib::loadLibrary(IPS_ROOT_PATH . 'sources/classes/archive/reader.php', 'classes_archive_reader');
         $this->archiveReader = new $classToLoad();
         $this->archiveReader->setApp('forums');
         $this->table = $this->archiveReader->getFields();
         $this->table['_table_'] = 'forums_archive_posts';
         $this->table['_prefix_'] = 'p.archive_';
         $this->table['forums_search_posts_main'] = 'forums_search_archive_main';
         $this->table['forums_search_posts_delta'] = 'forums_search_archive_delta';
         /* disable max days search */
         $this->settings['search_ucontent_days'] = 0;
     } else {
         $this->table = array('_table_' => 'posts', '_prefix_' => 'p.', 'pid' => 'pid', 'author_id' => 'author_id', 'author_name' => 'author_name', 'ip_address' => 'ip_address', 'post_date' => 'post_date', 'post' => 'post', 'queued' => 'queued', 'topic_id' => 'topic_id', 'new_topic' => 'new_topic', 'post_bwoptions' => 'post_bwoptions', 'post_key' => 'post_key', 'post_htmlstate' => 'post_htmlstate', 'use_sig' => 'use_sig', 'use_emo' => 'use_emo', 'append_edit' => 'append_edit', 'edit_time' => 'edit_time', 'edit_name' => 'edit_name', 'post_edit_reason' => 'post_edit_reason', 'forums_search_posts_main' => 'forums_search_posts_main', 'forums_search_posts_delta' => 'forums_search_posts_delta');
     }
     parent::__construct($registry);
 }
开发者ID:mover5,项目名称:imobackup,代码行数:35,代码来源:sphinx.php

示例4: init

 /**
  * Initiate this module
  *
  * @access	public
  * @return	void
  */
 public function init()
 {
     //-----------------------------------------
     // INIT
     //-----------------------------------------
     $this->request['st'] = intval($this->request['st']);
     //-----------------------------------------
     // Make sure we have values
     //-----------------------------------------
     if ($this->settings['postpage_contents'] == "") {
         $this->settings['postpage_contents'] = '5,10,15,20,25,30,35,40';
     }
     if ($this->settings['topicpage_contents'] == "") {
         $this->settings['topicpage_contents'] = '5,10,15,20,25,30,35,40';
     }
     //-----------------------------------------
     // Grab forum class
     //-----------------------------------------
     if (ipsRegistry::isClassLoaded('class_forums') !== TRUE) {
         try {
             require_once IPSLib::getAppDir('forums') . "/sources/classes/forums/class_forums.php";
             $this->registry->setClass('class_forums', new class_forums($this->registry));
         } catch (Exception $error) {
             IPS_exception_error($error);
         }
         $this->registry->getClass('class_forums')->strip_invisible = 1;
         $this->registry->getClass('class_forums')->forumsInit();
     }
     $this->tab_name = ipsRegistry::getClass('class_localization')->words['tab__forums'];
 }
开发者ID:dalandis,项目名称:Visualization-of-Cell-Phone-Locations,代码行数:36,代码来源:usercpForms.php

示例5: __construct

 /**
  * Constructor
  *
  * @access	public
  * @param	object	ipsRegistry
  * @return	void
  */
 public function __construct(ipsRegistry $registry)
 {
     //-----------------------------------------
     // Could potentially be setup from sessions
     //-----------------------------------------
     if (!$registry->isClassLoaded('ccsFunctions')) {
         require_once IPSLib::getAppDir('ccs') . '/sources/functions.php';
         $registry->setClass('ccsFunctions', new ccsFunctions($registry));
     }
 }
开发者ID:dalandis,项目名称:Visualization-of-Cell-Phone-Locations,代码行数:17,代码来源:app_class_ccs.php

示例6: __construct

 /**
  * Constructor
  *
  * @access	public
  * @param	object		ipsRegistry reference
  * @return	void
  */
 public function __construct(ipsRegistry $registry)
 {
     parent::__construct($registry);
     /* Load and init forums */
     if (ipsRegistry::isClassLoaded('class_forums') !== TRUE) {
         try {
             require_once IPSLib::getAppDir('forums') . "/sources/classes/forums/class_forums.php";
             $this->registry->setClass('class_forums', new class_forums($registry));
         } catch (Exception $error) {
             IPS_exception_error($error);
         }
         $this->registry->getClass('class_forums')->strip_invisible = 1;
         $this->registry->getClass('class_forums')->forumsInit();
     }
 }
开发者ID:dalandis,项目名称:Visualization-of-Cell-Phone-Locations,代码行数:22,代码来源:plugin_post.php

示例7: runPlugin

 /**
  * Run the plug-in
  *
  * @access	public
  * @author	Matt Mecham
  * @param	string	The initial data from the tag
  * @param	array	Array of options
  * @return	string	Processed HTML
  */
 public function runPlugin($data, $options)
 {
     //-----------------------------------------
     // INIT
     //-----------------------------------------
     if ($options['group'] == 'editors' && ipsRegistry::isClassLoaded('class_localization')) {
         ipsRegistry::getClass('class_localization')->loadLanguageFile(array('public_editors'), 'core');
     }
     $return = '';
     $_group = str_replace('skin_', '', $options['group']);
     $_group = str_replace('{current_app}', "'.\$this->registry->getCurrentApplication().'", $_group);
     $_params = $options['params'];
     $return = "\$this->registry->getClass('output')->getTemplate('" . $_group . "')->" . $data . "(" . $_params . ")";
     return '" . ' . $return . ' . "';
 }
开发者ID:dalandis,项目名称:Visualization-of-Cell-Phone-Locations,代码行数:24,代码来源:tp_template.php

示例8: __construct

 /**
  * Constructor
  *
  * @param	object		ipsRegistry reference
  * @return	@e void
  */
 public function __construct(ipsRegistry $registry)
 {
     parent::__construct($registry);
     /* Load and init forums */
     if (ipsRegistry::isClassLoaded('class_forums') !== TRUE) {
         try {
             $classToLoad = IPSLib::loadLibrary(IPSLib::getAppDir('forums') . "/sources/classes/forums/class_forums.php", 'class_forums', 'forums');
             $this->registry->setClass('class_forums', new $classToLoad($registry));
         } catch (Exception $error) {
             IPS_exception_error($error);
         }
         $this->registry->getClass('class_forums')->strip_invisible = 1;
         $this->registry->getClass('class_forums')->forumsInit();
         $this->memberData = IPSMember::setUpModerator($this->memberData);
     }
     /* Load topic class */
     if (!$this->registry->isClassLoaded('topics')) {
         $classToLoad = IPSLib::loadLibrary(IPSLib::getAppDir('forums') . "/sources/classes/topics.php", 'app_forums_classes_topics', 'forums');
         $this->registry->setClass('topics', new $classToLoad($this->registry));
     }
 }
开发者ID:ConnorChristie,项目名称:GrabViews,代码行数:27,代码来源:plugin_post.php

示例9: doExecute

 /**
  * Main function executed automatically by the controller
  *
  * @param	object		$registry		Registry object
  * @return	@e void
  */
 public function doExecute(ipsRegistry $registry)
 {
     /* Load Skin and Lang */
     $this->html = $this->registry->output->loadTemplate('cp_skin_archive');
     $this->form_code = $this->html->form_code = 'module=archive&section=archive&';
     $this->html->form_code_js = $this->html->form_code_js = 'module=archive&section=archive&';
     $this->lang->loadLanguageFile(array('admin_archive'));
     /* Load up archive class */
     $classToLoad = IPSLib::loadLibrary(IPS_ROOT_PATH . 'sources/classes/archive/writer.php', 'classes_archive_writer');
     $this->archiveWriter = new $classToLoad();
     $this->archiveWriter->setApp('forums');
     /* Check for class_forums */
     if (ipsRegistry::isClassLoaded('class_forums') !== TRUE) {
         $classToLoad = IPSLib::loadLibrary(IPSLib::getAppDir('forums') . "/sources/classes/forums/class_forums.php", 'class_forums', 'forums');
         $this->registry->setClass('class_forums', new $classToLoad($registry));
         $this->registry->class_forums->forumsInit();
     }
     switch ($this->request['do']) {
         case 'toggleArchiving':
             $this->_archiveToggle();
             break;
         case 'rules':
             $this->_archiveRules();
             break;
         case 'saveRules':
             $this->_saveRules();
             break;
         case 'saveRestorePrefs':
             $this->_saveRestorePrefs();
             break;
         case 'overview':
         default:
             $this->_archiveDash();
             break;
     }
     /* Output */
     $this->registry->output->html_main .= $this->registry->output->global_template->global_frame_wrapper();
     $this->registry->output->sendOutput();
 }
开发者ID:ConnorChristie,项目名称:GrabViews,代码行数:45,代码来源:archive.php

示例10: getHtml

 /**
  * Retuns the html for displaying the forum category filter on the advanced search page
  *
  * @return	string	Filter HTML
  */
 public function getHtml()
 {
     /* Make sure class_forums is setup */
     if (ipsRegistry::isClassLoaded('class_forums') !== TRUE) {
         $classToLoad = IPSLib::loadLibrary(IPSLib::getAppDir('forums') . "/sources/classes/forums/class_forums.php", 'class_forums', 'forums');
         ipsRegistry::setClass('class_forums', new $classToLoad(ipsRegistry::instance()));
     }
     ipsRegistry::getClass('class_forums')->strip_invisible = 1;
     ipsRegistry::getClass('class_forums')->forumsInit();
     /* Got any archived content? */
     $canSearchArchives = false;
     if ($this->settings['archive_on']) {
         $canSearchArchives = true;
         if (($this->settings['search_method'] == 'traditional' || $this->settings['search_method'] == 'sql') && $this->settings['archive_remote_sql_database']) {
             $canSearchArchives = false;
         }
     }
     $topic = NULL;
     if ($this->request['cType'] == 'topic') {
         $this->request['cId'] = intval($this->request['cId']);
         $topic = ipsRegistry::DB()->buildAndFetch(array('select' => '*', 'from' => 'topics', 'where' => "tid={$this->request['cId']}"));
     }
     return array('title' => IPSLib::getAppTitle('forums'), 'html' => ipsRegistry::getClass('output')->getTemplate('search')->forumAdvancedSearchFilters(ipsRegistry::getClass('class_forums')->buildForumJump(0, 1, 0, (isset($this->request['cId']) and $this->request['cType'] == 'forum') ? array($this->request['cId']) : array()), $canSearchArchives, $topic));
 }
开发者ID:Advanture,项目名称:Online-RolePlay,代码行数:29,代码来源:form.php

示例11: modifySearchQuery

 /**
  * Modify the search query
  *
  * @access	public
  * @param	array 	$query			The current unmodified query
  * @param	bool 	[$count_only]	Set to true if this is a count(*) query
  * @return	array 	Search query, modified by the plugin
  **/
 public function modifySearchQuery($query, $count_only = false)
 {
     if (ipsRegistry::$settings['search_method'] == 'sphinx') {
         $query->SetFilter('approved', array(1));
         $query->SetFilter('queued', array(0));
         $query->SetFilter('password', array(0));
         if (isset(ipsRegistry::$request['search_app_filters']['forums']['forums']) && is_array(ipsRegistry::$request['search_app_filters']['forums']['forums']) && count(ipsRegistry::$request['search_app_filters']['forums']['forums'])) {
             /* Load class_forums so that we can search sub forums automatically */
             if (ipsRegistry::isClassLoaded('class_forums') !== TRUE) {
                 require_once IPSLib::getAppDir('forums') . '/sources/classes/forums/class_forums.php';
                 ipsRegistry::setClass('class_forums', new class_forums(ipsRegistry::instance()));
                 ipsRegistry::getClass('class_forums')->forumsInit();
             }
             $forum_ids = array();
             /* Get a list of child ids */
             foreach (ipsRegistry::$request['search_app_filters']['forums']['forums'] as $forum_id) {
                 if ($forum_id) {
                     $forum_ids[] = $forum_id;
                     //$children = ipsRegistry::getClass( 'class_forums' )->forumsGetChildren( $forum_id );
                     //foreach( $children as $kid )
                     //{
                     //	if( ! in_array( $kid, ipsRegistry::$request['search_app_filters']['forums'] ) )
                     //	{
                     //		 $forum_ids[]	= $kid;
                     //	}
                     //}
                 }
             }
             if (is_array($forum_ids) and count($forum_ids)) {
                 $query->SetFilter('forum_id', $forum_ids);
             }
         }
         /* Limit by forum */
         $type = ipsRegistry::$request['type'];
         $type_id = intval(ipsRegistry::$request['type_id']);
         if ($type && $type_id) {
             $query->SetFilter('forum_id', array($type_id));
         }
         /* Limit by topic */
         $type_2 = ipsRegistry::$request['type_2'];
         $type_id_2 = intval(ipsRegistry::$request['type_id_2']);
         if ($type_2 && $type_id_2) {
             $query->SetFilter('tid', array($type_id_2));
         }
     } else {
         return $query;
     }
 }
开发者ID:dalandis,项目名称:Visualization-of-Cell-Phone-Locations,代码行数:56,代码来源:searchDisplay.php

示例12: __construct

 /**
  * I'm a constructor, twisted constructor
  *
  * @param	object	ipsRegistry reference
  * @return	@e void
  */
 public function __construct(ipsRegistry $registry)
 {
     /* Make objects */
     $this->registry = $registry;
     $this->DB = $this->registry->DB();
     $this->settings =& $this->registry->fetchSettings();
     $this->request =& $this->registry->fetchRequest();
     $this->lang = $this->registry->getClass('class_localization');
     $this->member = $this->registry->member();
     $this->memberData =& $this->registry->member()->fetchMemberData();
     $this->cache = $this->registry->cache();
     $this->caches =& $this->registry->cache()->fetchCaches();
     /* Check for class_forums */
     if (ipsRegistry::isClassLoaded('class_forums') !== TRUE) {
         $classToLoad = IPSLib::loadLibrary(IPSLib::getAppDir('forums') . "/sources/classes/forums/class_forums.php", 'class_forums', 'forums');
         $this->registry->setClass('class_forums', new $classToLoad($registry));
         $this->registry->class_forums->forumsInit();
     }
 }
开发者ID:Advanture,项目名称:Online-RolePlay,代码行数:25,代码来源:coreExtensions.php

示例13: __construct

 /**
  * Class entry point
  *
  * @param	object		Registry reference
  * @return	@e void
  */
 public function __construct(ipsRegistry $registry)
 {
     /* Make objects */
     $this->registry = $registry;
     $this->DB = $this->registry->DB();
     $this->settings =& $this->registry->fetchSettings();
     $this->request =& $this->registry->fetchRequest();
     $this->lang = $this->registry->getClass('class_localization');
     $this->member = $this->registry->member();
     $this->memberData =& $this->registry->member()->fetchMemberData();
     $this->cache = $this->registry->cache();
     $this->caches =& $this->registry->cache()->fetchCaches();
     /* Check for class_forums */
     if (ipsRegistry::isClassLoaded('class_forums') !== TRUE) {
         $classToLoad = IPSLib::loadLibrary(IPSLib::getAppDir('forums') . "/sources/classes/forums/class_forums.php", 'class_forums', 'forums');
         $this->registry->setClass('class_forums', new $classToLoad($registry));
         $this->registry->class_forums->forumsInit();
     }
     /* Init */
     if (!$this->registry->isClassLoaded('topics')) {
         $classToLoad = IPSLib::loadLibrary(IPSLib::getAppDir('forums') . "/sources/classes/topics.php", 'app_forums_classes_topics', 'forums');
         $this->registry->setClass('topics', new $classToLoad($this->registry));
     }
     /* Load tagging stuff */
     if (!$this->registry->isClassLoaded('tags')) {
         require_once IPS_ROOT_PATH . 'sources/classes/tags/bootstrap.php';
         /*noLibHook*/
         $this->registry->setClass('tags', classes_tags_bootstrap::run('forums', 'topics'));
     }
 }
开发者ID:mover5,项目名称:imobackup,代码行数:36,代码来源:moderate.php

示例14: doExecute


//.........这里部分代码省略.........
                     if ($this->custom_fields->cache_data[$id]['pf_type'] == 'cbox') {
                         if (count($this->request['field_' . $id])) {
                             foreach ($this->request['field_' . $id] as $k => $v) {
                                 $query[] = "p.field_{$id} LIKE '%|{$k}|%'";
                             }
                         }
                     } else {
                         $query[] = $this->custom_fields->cache_data[$id]['pf_search_type'] == 'loose' ? "p.field_{$id} LIKE '%" . $this->request['field_' . $id] . "%'" : "p.field_{$id} = '" . $this->request['field_' . $id] . "'";
                     }
                 }
             }
         }
     }
     //-----------------------------------------
     // Rating..
     //-----------------------------------------
     if ($pp_rating_real) {
         $_queryPP = true;
         $query[] = "pp.pp_rating_real > " . $pp_rating_real;
         $url['pp_rating_real'] = "pp_rating_real=" . $pp_rating_real;
     }
     //-----------------------------------------
     // Finish query
     //-----------------------------------------
     //$query[] = "m.members_l_display_name != ''";
     $joins = array();
     if ($_queryPP) {
         $joins[] = array('from' => array('pfields_content' => 'p'), 'where' => 'p.member_id=m.member_id', 'type' => 'left');
         $joins[] = array('from' => array('profile_portal' => 'pp'), 'where' => 'pp.pp_member_id=m.member_id', 'type' => 'left');
     }
     //-----------------------------------------
     // Reputation
     //-----------------------------------------
     if (!ipsRegistry::isClassLoaded('repCache')) {
         $classToLoad = IPSLib::loadLibrary(IPS_ROOT_PATH . 'sources/classes/class_reputation_cache.php', 'classReputationCache');
         ipsRegistry::setClass('repCache', new $classToLoad());
     }
     //-----------------------------------------
     // START THE LISTING
     //-----------------------------------------
     $notInMembers = 0;
     foreach ($query as $q) {
         if (!strstr($q, 'm.')) {
             $notInMembers++;
         }
     }
     /* Get the count */
     if ($notInMembers > 0 or $this->sort_key != 'members_l_display_name' or $this->request['request_method'] == 'post') {
         $_max = $this->DB->buildAndFetch(array('select' => 'COUNT( * ) as cnt', 'from' => array('members' => 'm'), 'where' => implode(" AND ", $query), 'add_join' => $joins));
         $this->DB->build(array('select' => ' m.member_id', 'from' => array('members' => 'm'), 'where' => implode(" AND ", $query), 'order' => 'm.' . $this->sort_key . ' ' . $this->sort_order, 'limit' => array($this->first, $this->max_results), 'add_join' => $joins));
     } else {
         $_max = $this->DB->buildAndFetch(array('select' => 'COUNT( * ) as cnt', 'from' => 'members m', 'where' => implode(" AND ", $query)));
         $this->DB->build(array('select' => 'm.member_id', 'from' => array('members' => 'm'), 'where' => implode(" AND ", $query), 'order' => 'm.' . $this->sort_key . ' ' . $this->sort_order, 'limit' => array($this->first, $this->max_results)));
     }
     /* Fetch IDs */
     $mids = array();
     $this->DB->execute();
     while ($m = $this->DB->fetch()) {
         if ($m['member_id']) {
             $mids[] = $m['member_id'];
         }
     }
     if (count($mids)) {
         $members = array();
         $_members = IPSMember::load($mids, 'all');
         /* Make sure that we keep the ordering from the query */
开发者ID:mover5,项目名称:imobackup,代码行数:67,代码来源:view.php

示例15: _checkAccess

 /**
  * Check access to report the topic
  *
  * @param 	integer 	Topic id
  * @return	@e void
  */
 protected function _checkAccess($tid)
 {
     //-----------------------------------------
     // Needs silly a. alias to keep oracle
     // happy
     //-----------------------------------------
     $this->topic = $this->DB->buildAndFetch(array('select' => 'a.*,a.title as topic_title', 'from' => 'topics a', 'where' => "a.tid=" . $tid));
     if (ipsRegistry::isClassLoaded('class_forums') !== TRUE) {
         $classToLoad = IPSLib::loadLibrary(IPSLib::getAppDir('forums') . "/sources/classes/forums/class_forums.php", 'class_forums', 'forums');
         $this->registry->setClass('class_forums', new $classToLoad($this->registry));
         $this->registry->getClass('class_forums')->forumsInit();
     }
     $this->registry->getClass('class_forums')->forumsCheckAccess($this->topic['forum_id'], 0, 'topic', $this->topic);
 }
开发者ID:Advanture,项目名称:Online-RolePlay,代码行数:20,代码来源:post.php


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