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


PHP ipsRegistry类代码示例

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


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

示例1: __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

示例2: __construct

 /**
  * Constructor
  *
  * @param	object		$registry		Registry object
  * @return	@e void
  */
 public function __construct(ipsRegistry $registry)
 {
     //-----------------------------------------
     // Make shortcuts
     //-----------------------------------------
     $this->cache = $registry->cache();
 }
开发者ID:mover5,项目名称:imobackup,代码行数:13,代码来源:permissionsSync.php

示例3: doExecute

 /**
  * Main executable
  *
  * @param	object	registry object
  * @return	@e void
  */
 public function doExecute(ipsRegistry $registry)
 {
     $registry->getClass('class_localization')->loadLanguageFile(array('admin_templates'), 'core');
     //-----------------------------------------
     // Load functions and cache classes
     //-----------------------------------------
     require_once IPS_ROOT_PATH . 'sources/classes/skins/skinFunctions.php';
     /*noLibHook*/
     require_once IPS_ROOT_PATH . 'sources/classes/skins/skinCaching.php';
     /*noLibHook*/
     require_once IPS_ROOT_PATH . 'sources/classes/skins/skinDifferences.php';
     /*noLibHook*/
     $this->skinFunctions = new skinDifferences($registry);
     /* Check... */
     if (!$registry->getClass('class_permissions')->checkPermission('templates_manage', ipsRegistry::$current_application, 'templates')) {
         $this->returnJsonError($registry->getClass('class_localization')->words['sk_ajax_noperm']);
     }
     //-----------------------------------------
     // What shall we do?
     //-----------------------------------------
     switch ($this->request['do']) {
         default:
         case 'getTemplateBitList':
             $this->_getTemplateBitList();
             break;
         case 'replace':
             $this->_replace();
             break;
     }
 }
开发者ID:mover5,项目名称:imobackup,代码行数:36,代码来源:templatesandr.php

示例4: __construct

 /**
  * Constructor
  *
  * @return	@e void
  */
 public function __construct(ipsRegistry $registry)
 {
     $this->registry = $registry;
     $this->DB = $registry->DB();
     $this->settings =& $registry->fetchSettings();
     $this->cache = $this->registry->cache();
     $this->caches =& $this->registry->cache()->fetchCaches();
 }
开发者ID:Advanture,项目名称:Online-RolePlay,代码行数:13,代码来源:furlRedirect.php

示例5: __construct

 /**
  * Constructor
  *
  * @param	object		$registry		Registry object
  * @param	object		$class			Task manager class object
  * @param	array		$task			Array with the task data
  * @return	@e void
  */
 public function __construct(ipsRegistry $registry, $class, $task)
 {
     /* Make registry objects */
     $this->registry = $registry;
     $this->settings = $registry->fetchSettings();
     $this->lang = $this->registry->getClass('class_localization');
     $this->class = $class;
     $this->task = $task;
 }
开发者ID:ConnorChristie,项目名称:GrabViews,代码行数:17,代码来源:minifycleanup.php

示例6: __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

示例7: init

 /**
  * Loads the registry class
  *
  * @return @e void
  */
 public function init()
 {
     /* Path not set? */
     if (!$this->path_to_ipb) {
         /* Constant available? */
         if (defined('DOC_IPS_ROOT_PATH')) {
             $this->path_to_ipb = DOC_IPS_ROOT_PATH;
         } else {
             /* Fallback.. */
             $this->path_to_ipb = dirname(__FILE__) . '/../../';
         }
     }
     /* Load the registry */
     require_once $this->path_to_ipb . 'initdata.php';
     /*noLibHook*/
     require_once $this->path_to_ipb . CP_DIRECTORY . '/sources/base/ipsRegistry.php';
     /*noLibHook*/
     $this->registry = ipsRegistry::instance();
     $this->registry->init();
     /* Make registry shortcuts */
     $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();
     /* INIT Child? */
     if (method_exists($this, 'childInit')) {
         $this->childInit();
     }
 }
开发者ID:ConnorChristie,项目名称:GrabViews-Live,代码行数:38,代码来源:api_core.php

示例8: doExecute

 /**
  * Main class entry point
  *
  * @access	public
  * @param	object		ipsRegistry reference
  * @return	void		[Outputs to screen]
  */
 public function doExecute(ipsRegistry $registry)
 {
     //-----------------------------------------
     // Load HTML
     //-----------------------------------------
     $this->html = $this->registry->output->loadTemplate('cp_skin_filemanager');
     //-----------------------------------------
     // Set up stuff
     //-----------------------------------------
     $this->form_code = $this->html->form_code = 'module=pages&section=manage';
     $this->form_code_js = $this->html->form_code_js = 'module=pages&section=manage';
     //-----------------------------------------
     // Load Language
     //-----------------------------------------
     ipsRegistry::getClass('class_localization')->loadLanguageFile(array('admin_lang'));
     //-----------------------------------------
     // Grab extra CSS
     //-----------------------------------------
     $this->registry->output->addToDocumentHead('importcss', $this->settings['skin_app_url'] . 'css/ccs.css');
     //-----------------------------------------
     // Get existing folders
     //-----------------------------------------
     $this->DB->build(array('select' => '*', 'from' => 'ccs_folders'));
     $this->DB->execute();
     while ($r = $this->DB->fetch()) {
         $this->folders[] = $r['folder_path'];
     }
     //-----------------------------------------
     // What to do?
     //-----------------------------------------
     switch ($this->request['do']) {
         case 'multi':
             $this->_multiAction();
             break;
         case 'deleteFolder':
             $this->_deleteFolder(urldecode($this->request['dir']));
             break;
         case 'emptyFolder':
             $this->_emptyFolder(urldecode($this->request['dir']));
             break;
         case 'doCreateFolder':
             $this->_doCreateFolder();
             break;
         case 'doRenameFolder':
             $this->_doRenameFolder();
             break;
         case 'editFolder':
             $this->_directoryForm('edit');
             break;
         case 'createFolder':
         default:
             $this->_directoryForm('add');
             break;
     }
     //-----------------------------------------
     // Pass to CP output hander
     //-----------------------------------------
     $this->registry->getClass('output')->html_main .= $this->registry->getClass('output')->global_template->global_frame_wrapper();
     $this->registry->getClass('output')->sendOutput();
 }
开发者ID:dalandis,项目名称:Visualization-of-Cell-Phone-Locations,代码行数:67,代码来源:manage.php

示例9: runTask

 public function runTask()
 {
     ipsRegistry::DB()->build(array('select' => '*', 'from' => 'members'));
     $members_vip = $this->DB->execute();
     while ($m = $this->DB->fetch($members_vip)) {
         $vipValido = false;
         ipsRegistry::DB()->build(array('select' => '*', 'from' => 'vips'));
         $vips = ipsRegistry::DB()->execute();
         while ($vip = $this->DB->fetch($vips)) {
             if ($vip['nome'] == $m['name']) {
                 if ($vip[$vip['usando']] > 0) {
                     if ($m['member_group_id'] != $this->settings['pxvip_GrupoVip']) {
                         $this->DB->update('members', array('member_group_id' => $this->settings['pxvip_GrupoVip']), 'member_id=' . $m['member_id']);
                     }
                     $vipValido = true;
                 }
             }
         }
         if ($vipValido == false && $m['member_group_id'] == $this->settings['pxvip_GrupoVip']) {
             $this->DB->update('members', array('member_group_id' => 3), 'member_id=' . $m['member_id']);
         }
     }
     $this->class->appendTaskLog($this->task, $this->lang->words['my_task_log_lang_string']);
     $this->class->unlockTask($this->task);
 }
开发者ID:Proyx,项目名称:PXVip,代码行数:25,代码来源:groupChangeTask.php

示例10: __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

示例11: __construct

 public function __construct()
 {
     $this->registry = ipsRegistry::instance();
     $this->DB = $this->registry->DB();
     $this->settings =& $this->registry->fetchSettings();
     $this->memberData =& $this->registry->member()->fetchMemberData();
 }
开发者ID:Advanture,项目名称:Online-RolePlay,代码行数:7,代码来源:sidebarprofile_1b1f007f1e342846969e722885116283.php

示例12: onDelete

 /**
  * This method is called after a member account has been removed
  *
  * @param	string	$ids	SQL IN() clause
  * @return	@e void
  */
 public function onDelete($mids)
 {
     /* Delete Status Updates - note, we can't do this via memberStatus class, since we no longer have the member data */
     ipsRegistry::DB()->delete('member_status_updates', "status_member_id" . $mids);
     ipsRegistry::DB()->delete('member_status_actions', "action_member_id" . $mids);
     ipsRegistry::DB()->delete('member_status_replies', "reply_member_id" . $mids);
 }
开发者ID:ConnorChristie,项目名称:GrabViews,代码行数:13,代码来源:memberSync.php

示例13: doExecute

 /**
  * Main class entry point
  *
  * @access	public
  * @param	object		ipsRegistry reference
  * @return	@e void		[Outputs to screen]
  */
 public function doExecute(ipsRegistry $registry)
 {
     //-----------------------------------------
     // Set up stuff
     //-----------------------------------------
     $this->form_code = 'module=settings&section=settings';
     $this->form_code_js = 'module=settings&section=settings';
     //-------------------------------
     // Grab, init and load settings
     //-------------------------------
     $classToLoad = IPSLib::loadActionOverloader(IPSLib::getAppDir('core') . '/modules_admin/settings/settings.php', 'admin_core_settings_settings');
     $settings = new $classToLoad($this->registry);
     $settings->makeRegistryShortcuts($this->registry);
     ipsRegistry::getClass('class_localization')->loadLanguageFile(array('admin_tools'), 'core');
     $settings->html = $this->registry->output->loadTemplate('cp_skin_settings', 'core');
     $settings->form_code = $settings->html->form_code = 'module=settings&section=settings';
     $settings->form_code_js = $settings->html->form_code_js = 'module=settings&section=settings';
     $this->request['conf_title_keyword'] = 'calendar';
     $settings->return_after_save = $this->settings['base_url'] . $this->form_code;
     $settings->_viewSettings();
     //-----------------------------------------
     // Pass to CP output hander
     //-----------------------------------------
     $this->registry->getClass('output')->html_main .= $this->registry->getClass('output')->global_template->global_frame_wrapper();
     $this->registry->getClass('output')->sendOutput();
 }
开发者ID:mover5,项目名称:imobackup,代码行数:33,代码来源:settings.php

示例14: __construct

 public function __construct()
 {
     $this->registry = ipsRegistry::instance();
     $this->member = $this->registry->member();
     $this->memberData =& $this->registry->member()->fetchMemberData();
     $this->registry->class_localization->loadLanguageFile(array('public_topic'), 'forums');
 }
开发者ID:dalandis,项目名称:Visualization-of-Cell-Phone-Locations,代码行数:7,代码来源:boardIndexWatchedItems_9466b18e87f268224a349b3dacd12892.php

示例15: __construct

 /**
  * @desc			Loads and checks different vars when class is initiating
  * @author			Matthias Reuter
  * @since			2.0
  * @ignore
  */
 public function __construct()
 {
     // check for DB prefix
     if (ipbwi_DB_prefix == '') {
         define('ipbwi_DB_prefix', 'ipbwi_');
     }
     if (defined('ipbwi_LANG')) {
         self::setLang(ipbwi_LANG);
     } else {
         self::setLang('en');
     }
     // initialize IP.board Interface
     require_once ipbwi_ROOT_PATH . 'lib/ips_wrapper.inc.php';
     if (!defined('IPBWI_INCORRECT_BOARD_PATH')) {
         $this->ips_wrapper = new ipbwi_ips_wrapper();
         if (defined('ipbwi_COOKIE_DOMAIN')) {
             $this->board['cookie_domain'] = ipbwi_COOKIE_DOMAIN;
             $this->ips_wrapper->settings['cookie_domain'] = ipbwi_COOKIE_DOMAIN;
             ipsRegistry::$settings['cookie_domain'] = ipbwi_COOKIE_DOMAIN;
         }
         ipsRegistry::cache()->updateCacheWithoutSaving('settings', ipsRegistry::$settings);
         // retrieve common vars
         $this->board = $this->ips_wrapper->settings;
         $this->board['version'] = $this->ips_wrapper->caches['app_cache']['core']['app_version'];
         $this->board['version_long'] = $this->ips_wrapper->caches['app_cache']['core']['app_long_version'];
         $this->board['url'] = str_replace('?', '', $this->ips_wrapper->settings['board_url']) . '/';
         $this->board['name'] = $this->ips_wrapper->settings['board_name'];
         $this->board['basedir'] = ipbwi_BOARD_PATH;
         $this->board['upload_dir'] = $this->ips_wrapper->settings['upload_dir'] . '/';
         $this->board['upload_url'] = $this->ips_wrapper->settings['upload_url'] . '/';
         $this->board['home_name'] = $this->ips_wrapper->settings['home_name'];
         $this->board['home_url'] = $this->ips_wrapper->settings['home_url'] . '/';
         $this->board['emo_url'] = str_replace('<#EMO_DIR#>', 'default', $this->ips_wrapper->settings['emoticons_url']) . '/';
     }
 }
开发者ID:smgladkovskiy,项目名称:kohana-ipbwi,代码行数:41,代码来源:ipbwi.inc.php


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