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


PHP midcom_show_style函数代码示例

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


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

示例1: _show_folders

 /**
  * Show list of the style elements for the currently edited topic component
  *
  * @param string $handler_id Name of the used handler
  * @param mixed &$data Data passed to the show method
  */
 public function _show_folders($handler_id, array &$data)
 {
     midgard_admin_asgard_plugin::asgard_header();
     $data['group'] =& $this->_group;
     midcom_show_style('midcom-admin-user-group-folders');
     midgard_admin_asgard_plugin::asgard_footer();
 }
开发者ID:nemein,项目名称:openpsa,代码行数:13,代码来源:permissions.php

示例2: _show_create

 /**
  * Show list of the style elements for the currently createed topic component
  *
  * @param string $handler_id Name of the used handler
  * @param mixed &$data Data passed to the show method
  */
 public function _show_create($handler_id, array &$data)
 {
     midgard_admin_asgard_plugin::asgard_header();
     $data['person'] =& $this->_person;
     midcom_show_style('midcom-admin-user-person-create');
     midgard_admin_asgard_plugin::asgard_footer();
 }
开发者ID:nemein,项目名称:openpsa,代码行数:13,代码来源:create.php

示例3: _show_edit

 /**
  * Shows the loaded object in editor.
  *
  * @param mixed $handler_id The ID of the handler.
  * @param array &$data The local request data.
  */
 public function _show_edit($handler_id, array &$data)
 {
     midcom_show_style('midgard_admin_asgard_header');
     midcom_show_style('midgard_admin_asgard_middle');
     midcom_show_style('midgard_admin_asgard_object_parameters');
     midcom_show_style('midgard_admin_asgard_footer');
 }
开发者ID:nemein,项目名称:openpsa,代码行数:13,代码来源:parameters.php

示例4: _show_day

 /**
  *
  * @param mixed $handler_id The ID of the handler.
  * @param array &$data The local request data.
  */
 public function _show_day($handler_id, array &$data)
 {
     midcom_show_style('show-day-header');
     foreach ($this->_request_data['events'] as $event) {
         $this->_request_data['event'] = $event;
         midcom_show_style('show-day-item');
     }
     midcom_show_style('show-day-footer');
 }
开发者ID:nemein,项目名称:openpsa,代码行数:14,代码来源:agenda.php

示例5: _show_all

 /**
  *
  * @param mixed $handler_id The ID of the handler.
  * @param array &$data The local request data.
  */
 public function _show_all($handler_id, array &$data)
 {
     midcom_show_style('show-all-header');
     foreach ($this->_request_data['members_interviewed'] as $member) {
         $this->_request_data['person'] = new midcom_db_person($member->person);
         $this->_request_data['datamanager']->autoset_storage($member);
         midcom_show_style('show-all-item');
     }
     midcom_show_style('show-all-footer');
 }
开发者ID:nemein,项目名称:openpsa,代码行数:15,代码来源:report.php

示例6: _show_delete

 /**
  *
  * @param mixed $handler_id The ID of the handler.
  * @param array &$data The local request data.
  */
 public function _show_delete($handler_id, array &$data)
 {
     $this->_request_data['wikipage_view'] = $this->_datamanager->get_content_html();
     // Replace wikiwords
     if (array_key_exists('content', $this->_request_data['wikipage_view'])) {
         $parser = new net_nemein_wiki_parser($this->_page);
         $this->_request_data['wikipage_view']['content'] = $parser->get_markdown($this->_request_data['wikipage_view']['content']);
     }
     midcom_show_style('view-wikipage-delete');
 }
开发者ID:nemein,项目名称:openpsa,代码行数:15,代码来源:delete.php

示例7: _show_today

 /**
  *
  * @param mixed $handler_id The ID of the handler.
  * @param array &$data The local request data.
  */
 public function _show_today($handler_id, array &$data)
 {
     $siteconfig = org_openpsa_core_siteconfig::get_instance();
     $data['calendar_url'] = $siteconfig->get_node_relative_url('org.openpsa.calendar');
     $data['projects_url'] = $siteconfig->get_node_full_url('org.openpsa.projects');
     $data['projects_relative_url'] = $siteconfig->get_node_relative_url('org.openpsa.projects');
     $data['expenses_url'] = $siteconfig->get_node_full_url('org.openpsa.expenses');
     $data['wiki_url'] = $siteconfig->get_node_relative_url('net.nemein.wiki');
     $data_url = midcom::get()->get_host_name() . midcom_core_context::get()->get_key(MIDCOM_CONTEXT_ANCHORPREFIX);
     $data['journal_url'] = $data_url . '/__mfa/org.openpsa.relatedto/journalentry/list/xml/';
     midcom_show_style('show-today');
 }
开发者ID:nemein,项目名称:openpsa,代码行数:17,代码来源:today.php

示例8: get_help

 public static function get_help($data)
 {
     $help_element = null;
     if (!isset($data['object']) || !$data['object']->id) {
         return;
     }
     if (midcom::get('dbfactory')->is_a($data['object'], 'midgard_style')) {
         $help_element = midgard_admin_asgard_objecthelper::get_help_style($data);
     }
     if (midcom::get('dbfactory')->is_a($data['object'], 'midgard_element')) {
         $help_element = midgard_admin_asgard_objecthelper::get_help_element($data);
     }
     if ($help_element) {
         midcom_show_style('midgard_admin_asgard_objecthelper_' . $help_element);
     }
 }
开发者ID:nemein,项目名称:openpsa,代码行数:16,代码来源:objecthelper.php

示例9: _show_list

 /**
  * Show list of the style elements for the currently edited topic component
  *
  * @param string $handler_id Name of the used handler
  * @param mixed &$data Data passed to the show method
  */
 public function _show_list($handler_id, array &$data)
 {
     midgard_admin_asgard_plugin::asgard_header();
     $data['config'] =& $this->_config;
     midcom_show_style('midcom-admin-libs-list-header');
     $data['even'] = false;
     foreach ($this->_libs as $name => $lib) {
         $data['name'] = $name;
         midcom_show_style('midcom-admin-libs-list-item');
         if (!$data['even']) {
             $data['even'] = true;
         } else {
             $data['even'] = false;
         }
     }
     midcom_show_style('midcom-admin-libs-list-footer');
     midgard_admin_asgard_plugin::asgard_footer();
 }
开发者ID:nemein,项目名称:openpsa,代码行数:24,代码来源:list.php

示例10: _show_list

 /**
  * Shows the loaded message.
  */
 public function _show_list($handler_id, array &$data)
 {
     $qb = new org_openpsa_qbpager('org_openpsa_directmarketing_campaign_message_dba', 'campaign_messages');
     $qb->results_per_page = 10;
     $qb->add_order('metadata.created', 'DESC');
     $qb->add_constraint('campaign', '=', $this->_campaign->id);
     $ret = $qb->execute();
     $data['qbpager'] =& $qb;
     midcom_show_style("show-message-list-header");
     if (count($ret) > 0) {
         foreach ($ret as $message) {
             $this->_datamanager->autoset_storage($message);
             $data['message'] =& $message;
             $data['message_array'] = $this->_datamanager->get_content_html();
             $data['message_class'] = org_openpsa_directmarketing_viewer::get_messagetype_css_class($message->orgOpenpsaObtype);
             midcom_show_style('show-message-list-item');
         }
     }
     midcom_show_style("show-message-list-footer");
 }
开发者ID:nemein,项目名称:openpsa,代码行数:23,代码来源:list.php

示例11: _show_order

 /**
  * Show the sorting
  *
  * @param mixed $handler_id The ID of the handler.
  * @param array &$data The local request data.
  */
 public function _show_order($handler_id, array &$data)
 {
     $data['navorder'] = $this->_topic->get_parameter('midcom.helper.nav', 'navorder');
     // Navorder list for the selection
     $data['navorder_list'] = array(MIDCOM_NAVORDER_DEFAULT => midcom::get('i18n')->get_string('default sort order', 'midcom.admin.folder'), MIDCOM_NAVORDER_TOPICSFIRST => midcom::get('i18n')->get_string('folders first', 'midcom.admin.folder'), MIDCOM_NAVORDER_ARTICLESFIRST => midcom::get('i18n')->get_string('pages first', 'midcom.admin.folder'), MIDCOM_NAVORDER_SCORE => midcom::get('i18n')->get_string('by score', 'midcom.admin.folder'));
     if (!isset($_GET['ajax'])) {
         midcom_show_style('midcom-admin-folder-order-start');
     }
     $data['navigation'] = $this->_get_navigation_data();
     // Loop through each navigation type (node, leaf and mixed)
     foreach ($data['navigation'] as $key => $array) {
         $data['navigation_type'] = $key;
         $data['navigation_items'] = $array;
         midcom_show_style('midcom-admin-folder-order-type');
     }
     if (!isset($_GET['ajax'])) {
         midcom_show_style('midcom-admin-folder-order-end');
     }
 }
开发者ID:nemein,项目名称:openpsa,代码行数:25,代码来源:order.php

示例12: _show_list

 /**
  * Displays the archive.
  *
  * @param mixed $handler_id The ID of the handler.
  * @param array &$data The local request data.
  */
 public function _show_list($handler_id, array &$data)
 {
     // FIXME: For some reason the config topic is lost between _handle and _show phases
     $this->_config->store_from_object($this->_topic, $this->_component);
     midcom_show_style('archive-list-start');
     if ($this->_articles) {
         $data['index_fulltext'] = $this->_config->get('index_fulltext');
         if ($this->_config->get('comments_enable')) {
             midcom::get('componentloader')->load_graceful('net.nehmer.comments');
             $data['comments_enable'] = true;
         }
         $total_count = count($this->_articles);
         $prefix = midcom_core_context::get()->get_key(MIDCOM_CONTEXT_ANCHORPREFIX);
         foreach ($this->_articles as $article_counter => $article) {
             if (!$this->_datamanager->autoset_storage($article)) {
                 debug_add("The datamanager for article {$article->id} could not be initialized, skipping it.");
                 debug_print_r('Object was:', $article);
                 continue;
             }
             $data['article'] =& $article;
             $data['article_counter'] = $article_counter;
             $data['article_count'] = $total_count;
             $arg = $article->name ? $article->name : $article->guid;
             if ($this->_config->get('view_in_url')) {
                 $data['local_view_url'] = "{$prefix}view/{$arg}/";
             } else {
                 $data['local_view_url'] = "{$prefix}{$arg}/";
             }
             if ($this->_config->get('link_to_external_url') && !empty($article->url)) {
                 $data['view_url'] = $article->url;
             } else {
                 $data['view_url'] = $data['local_view_url'];
             }
             if ($article->topic === $this->_content_topic->id) {
                 $data['linked'] = false;
             } else {
                 $data['linked'] = true;
                 $nap = new midcom_helper_nav();
                 $data['node'] = $nap->get_node($article->topic);
             }
             midcom_show_style('archive-list-item');
         }
     } else {
         midcom_show_style('archive-list-empty');
     }
     midcom_show_style('archive-list-end');
 }
开发者ID:nemein,项目名称:openpsa,代码行数:53,代码来源:archive.php

示例13: _show_edit

 /**
  * Shows the loaded product.
  *
  * @param mixed $handler_id The ID of the handler.
  * @param array &$data The local request data.
  */
 public function _show_edit($handler_id, array &$data)
 {
     $this->_request_data['view_group'] = $this->_request_data['controller']->datamanager->get_content_html();
     midcom_show_style('product_group_edit');
 }
开发者ID:nemein,项目名称:openpsa,代码行数:11,代码来源:edit.php

示例14: _show_pdf

 /**
  *
  * @param mixed $handler_id The ID of the handler.
  * @param array &$data The local request data.
  */
 public function _show_pdf($handler_id, array &$data)
 {
     // if attachment was manually uploaded show confirm if file should be replaced
     midcom_show_style('show-confirm');
 }
开发者ID:nemein,项目名称:openpsa,代码行数:10,代码来源:pdf.php

示例15: _show_read

 /**
  *
  * @param mixed $handler_id The ID of the handler.
  * @param array &$data The local request data.
  */
 public function _show_read($handler_id, array &$data)
 {
     $data['datamanager'] =& $this->_datamanager;
     $data['task_bookings'] = $this->_list_bookings();
     midcom_show_style('show-task');
 }
开发者ID:nemein,项目名称:openpsa,代码行数:11,代码来源:crud.php


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