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


PHP ipsRegistry::getClass方法代码示例

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


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

示例1: 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
     //-----------------------------------------
     $classToLoad = IPSLib::loadLibrary(IPS_ROOT_PATH . 'sources/classes/useragents/userAgentFunctions.php', 'userAgentFunctions');
     $this->userAgentFunctions = new $classToLoad($registry);
     //-----------------------------------------
     // What shall we do?
     //-----------------------------------------
     switch ($this->request['do']) {
         case 'saveuAgent':
             if (!$registry->getClass('class_permissions')->checkPermission('ua_manage', ipsRegistry::$current_application, 'tools')) {
                 $this->returnJsonError($registry->getClass('class_localization')->words['sk_ajax_noperm']);
             }
             $this->_saveuAgent();
             break;
         case 'removeuAgent':
             if (!$registry->getClass('class_permissions')->checkPermission('ua_remove', ipsRegistry::$current_application, 'tools')) {
                 $this->returnJsonError($registry->getClass('class_localization')->words['sk_ajax_noperm']);
             }
             $this->_removeuAgent();
             break;
     }
 }
开发者ID:ConnorChristie,项目名称:GrabViews,代码行数:32,代码来源:uagents.php

示例2: 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

示例3: getDisplayContent

 /**
  * Returns content for the page
  */
 public function getDisplayContent($group = array(), $tabsUsed = 4)
 {
     #Load html template
     $this->html = ipsRegistry::getClass('output')->loadTemplate('cp_skin_syncApp_group_form', 'syncApp');
     #return display stuff
     return array('tabs' => $this->html->acp_group_form_tabs($group, $tabsUsed + 1), 'content' => $this->html->acp_group_form_main($group, $tabsUsed + 1), 'tabsUsed' => 1);
 }
开发者ID:Orfeous,项目名称:syncApp,代码行数:10,代码来源:group_form.php

示例4: 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_blocks');
     //-----------------------------------------
     // Load Language
     //-----------------------------------------
     ipsRegistry::getClass('class_localization')->loadLanguageFile(array('admin_lang'));
     //-----------------------------------------
     // What to do?
     //-----------------------------------------
     switch ($this->request['do']) {
         case 'reorder':
             $this->_doReorder();
             break;
         case 'reorderCats':
             $this->_doReorderCats();
             break;
         case 'fetchEncoding':
             $this->_fetchEncoding();
             break;
         case 'preview':
         default:
             $this->_showBlockPreview();
             break;
     }
 }
开发者ID:dalandis,项目名称:Visualization-of-Cell-Phone-Locations,代码行数:36,代码来源:blocks.php

示例5: 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

示例6: _saveTabs

 /**
  * Save tab preference order
  *
  * @return	@e void
  */
 protected function _saveTabs()
 {
     //-----------------------------------------
     // Store order
     //-----------------------------------------
     $order = array();
     $append = array();
     foreach ($this->tabKeys as $pos => $key) {
         if ($this->request['pos_' . $key]) {
             $order[$this->request['pos_' . $key]] = $key;
         } else {
             $append[] = $key;
         }
     }
     if (count($append)) {
         $order = array_merge($order, $append);
     }
     ksort($order);
     //-----------------------------------------
     // Save preference
     //-----------------------------------------
     ipsRegistry::getClass('adminFunctions')->staffSaveCookie('tabOrder', $order);
     //-----------------------------------------
     // Return new order
     //-----------------------------------------
     $this->returnJsonArray(array('order' => $order));
 }
开发者ID:mover5,项目名称:imobackup,代码行数:32,代码来源:tabs.php

示例7: getContentUrl

 /**
  * Get Content URL
  *
  * @param	array		$warning		Row from members_warn_logs
  * @return	@e array	array( url => URL to the content the warning came from, title => Title )
  */
 public function getContentUrl($warning)
 {
     ipsRegistry::getClass('class_localization')->loadLanguageFile(array('public_profile'), 'members');
     if ($warning['wl_content_id1']) {
         $post = ipsRegistry::DB()->buildAndFetch(array('select' => '*', 'from' => 'message_posts', 'where' => "msg_id=" . intval($warning['wl_content_id1'])));
         if (!empty($post['msg_topic_id'])) {
             $topic = ipsRegistry::DB()->buildAndFetch(array('select' => '*', 'from' => 'message_topics', 'where' => "mt_id={$post['msg_topic_id']}"));
             if (!empty($topic['mt_id'])) {
                 ipsRegistry::DB()->build(array('select' => '*', 'from' => 'message_topic_user_map', 'where' => "map_topic_id={$post['msg_topic_id']}"));
                 ipsRegistry::DB()->execute();
                 while ($row = ipsRegistry::DB()->fetch()) {
                     if ($row['map_user_id'] == ipsRegistry::member()->getProperty('member_id')) {
                         return array('url' => ipsRegistry::getClass('output')->buildUrl("app=members&module=messaging&section=view&do=findMessage&topicID={$topic['mt_id']}&msgID={$post['msg_id']}"), 'title' => $topic['mt_title']);
                     }
                 }
                 return array('url' => ipsRegistry::getClass('output')->buildUrl("app=core&module=reports&section=reports&do=showMessage&topicID={$topic['mt_id']}&msg={$post['msg_id']}"), 'title' => $topic['mt_title']);
             }
         }
     } else {
         $member = IPSMember::load($warning['wl_member']);
         if (!empty($member['member_id'])) {
             return array('url' => ipsRegistry::getClass('output')->buildSEOUrl("showuser={$member['member_id']}", 'public', $member['members_seo_name'], 'showuser'), 'title' => ipsRegistry::getClass('class_localization')->words['warnings_profile']);
         }
     }
 }
开发者ID:mover5,项目名称:imobackup,代码行数:31,代码来源:warnings.php

示例8: __construct

 /**
  * Constructor
  *
  * @param	ipsRegistry
  */
 public function __construct($registry)
 {
     $this->title = $registry->getClass('class_localization')->words['enhancements_facebook'];
     $this->description = $registry->getClass('class_localization')->words['enhancements_facebook_desc'];
     $this->enabled = ipsRegistry::$settings['fbc_enable'];
     $this->message = '<a href="http://external.ipslink.com/ipboard30/landing/?p=facebook" target="_blank">' . ipsRegistry::getClass('class_localization')->words['enhancements_facebook_help'] . '</a>';
 }
开发者ID:Advanture,项目名称:Online-RolePlay,代码行数:12,代码来源:facebook.php

示例9: 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&amp;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

示例10: afterOutputInit

 /**
  * Do some set up after ipsRegistry::init()
  *
  * @access	public
  */
 public function afterOutputInit()
 {
     if (IN_ACP) {
         $this->globalHtml = ipsRegistry::getClass('output')->loadTemplate('cp_skin_convert');
         ipsRegistry::getClass('output')->html .= $this->globalHtml->convertCSS();
     }
 }
开发者ID:mover5,项目名称:imobackup,代码行数:12,代码来源:app_class_convert.php

示例11: doExecute

 /**
  * Main class entry point
  *
  * @access	public
  * @param	object		ipsRegistry reference
  * @return	void		[Outputs to screen]
  */
 public function doExecute(ipsRegistry $registry)
 {
     //-----------------------------------------
     // Init
     //-----------------------------------------
     $this->registry->getClass('class_permissions')->checkPermissionAutoMsg('settemplates_meta');
     ipsRegistry::getClass('class_localization')->loadLanguageFile(array('admin_seo'));
     $this->html = $this->registry->output->loadTemplate('cp_skin_seo');
     //-----------------------------------------
     // What are we doing?
     //-----------------------------------------
     switch ($this->request['do']) {
         case 'add':
         case 'edit':
             $this->form();
             break;
         case 'save':
             $this->save();
             break;
         case 'delete':
             $this->delete();
             break;
         default:
             $this->manage();
             break;
     }
     //-----------------------------------------
     // Display
     //-----------------------------------------
     $this->registry->output->html_main .= $this->registry->output->global_template->global_frame_wrapper();
     $this->registry->output->sendOutput();
 }
开发者ID:mover5,项目名称:imobackup,代码行数:39,代码来源:meta.php

示例12: returnRSSDocument

 /**
  * Grab the RSS document content and return it
  *
  * @return	string		RSS document
  */
 public function returnRSSDocument()
 {
     //-----------------------------------------
     // INIT
     //-----------------------------------------
     $member_id = intval(ipsRegistry::$request['member_id']);
     $secure_key = IPSText::md5Clean(ipsRegistry::$request['rss_key']);
     $rss_data = array();
     $to_print = '';
     if ($secure_key and $member_id) {
         if ($member_id == ipsRegistry::member()->getProperty('member_id')) {
             //-----------------------------------------
             // Get RSS export
             //-----------------------------------------
             $rss_data = ipsRegistry::DB()->buildAndFetch(array('select' => 'rss_cache', 'from' => 'rc_modpref', 'where' => "mem_id=" . $member_id . " AND rss_key='" . $secure_key . "'"));
             //-----------------------------------------
             // Got one?
             //-----------------------------------------
             if ($rss_data['rss_cache']) {
                 return $rss_data['rss_cache'];
             }
         }
         //-----------------------------------------
         // Create a dummy one
         //-----------------------------------------
         ipsRegistry::getClass('class_localization')->loadLanguageFile(array('public_reports'), 'core');
         $classToLoad = IPSLib::loadLibrary(IPS_KERNEL_PATH . 'classRss.php', 'classRss');
         $rss = new $classToLoad();
         $channel_id = $rss->createNewChannel(array('title' => ipsRegistry::getClass('class_localization')->words['rss_feed_title'], 'link' => ipsRegistry::$settings['board_url'], 'description' => ipsRegistry::getClass('class_localization')->words['reports_rss_desc'], 'pubDate' => $rss->formatDate(time())));
         $rss->createRssDocument();
         return $rss->rss_document;
     }
 }
开发者ID:ConnorChristie,项目名称:GrabViews,代码行数:38,代码来源:rssOutput.php

示例13: __construct

 public function __construct()
 {
     $this->registry = ipsRegistry::instance();
     $this->settings = ipsRegistry::fetchSettings();
     $this->lang = $this->registry->getClass('class_localization');
     ipsRegistry::getClass('class_localization')->loadLanguageFile(array('public_lang'), 'syncApp');
 }
开发者ID:Orfeous,项目名称:syncApp,代码行数:7,代码来源:dashboardNotifications.php

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

示例15: __construct

 /**
  * CONSTRUCTOR
  *
  * @return      @e void
  */
 public function __construct()
 {
     $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');
     ipsRegistry::getClass('class_localization')->loadLanguageFile(array('public_lang'), 'syncApp');
     $this->member = $this->registry->member();
     $this->memberData =& $this->registry->member()->fetchMemberData();
     $this->cache = $this->registry->cache();
     $this->caches =& $this->registry->cache()->fetchCaches();
     $sqlPassed = FALSE;
     $classname = "db_driver_Mysql";
     $sync_DB = new $classname();
     $sync_DB->obj['sql_database'] = $this->settings['syncapp_realm_database'];
     $sync_DB->obj['sql_user'] = $this->settings['syncapp_mysql_user'];
     $sync_DB->obj['sql_pass'] = $this->settings['syncapp_mysql_password'];
     $sync_DB->obj['sql_host'] = $this->settings['syncapp_mysql_ip'];
     $sync_DB->return_die = true;
     if (!$sync_DB->connect()) {
         $fail = 1;
         return $fail;
         /* At this point we dont have a connection so ABORT! else database driver error */
     }
     if ($this->settings['syncapp_mysql_user'] || $this->settings['syncapp_mysql_password'] || $fail != 1) {
         $this->sqlPassed = TRUE;
         $this->registry->dbFunctions()->setDB('mysql', 'auth_DB', array('sql_database' => $this->settings['syncapp_realm_database'], 'sql_user' => $this->settings['syncapp_mysql_user'], 'sql_pass' => $this->settings['syncapp_mysql_password'], 'sql_host' => $this->settings['syncapp_mysql_ip']));
     } else {
         return;
     }
 }
开发者ID:Orfeous,项目名称:syncApp,代码行数:37,代码来源:memberSync.php


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