Changeset 12102

Show
Ignore:
Timestamp:
09/10/07 13:27:52 (1 year ago)
Author:
bergie
Message:

Remove references to obsolete taviewer and newsticker components, closes #123

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/midcom/midcom.core/midcom/application.php

    r12094 r12102  
    623623     *   we still are in the code-init phase. 
    624624     * 
    625      * Example code, executed on a sites Homepage, it will load the newsticker from 
     625     * Example code, executed on a sites Homepage, it will load the news listing from 
    626626     * the given URL and display it using a substyle of the node style that is assinged 
    627627     * to the loaded one: 
     
    629629     * <code> 
    630630     * <?php 
    631      * $newsticker = '/newsticker/latest/3.html'; 
     631     * $blog = '/blog/latest/3.html'; 
    632632     * $substyle = 'homepage'; 
    633      * $_MIDCOM->dynamic_load("/midcom-substyle-{$substyle}/{$newsticker}"); 
     633     * $_MIDCOM->dynamic_load("/midcom-substyle-{$substyle}/{$blog}"); 
    634634     * ?> 
    635635     * </code> 
  • trunk/midcom/midcom.core/midcom/baseclasses/components/interface.php

    r11947 r12102  
    2828 * things after calling the base class constructor: 
    2929 * 
    30  * - Inherit the class as {$component}_interface (e.g. de_linkm_taviewer_interface). 
     30 * - Inherit the class as {$component}_interface (e.g. net_nehmer_static_interface). 
    3131 * - Prepare a component manifest for your component, see the class 
    3232 *   midcom_core_manifest for details. 
     
    5151 * See the individual member documentation for now. 
    5252 * 
    53  * - $_ais_class_suffix 
    5453 * - $_autoload_files 
    5554 * - $_autoload_libraries 
     
    111110 * 
    112111 * <pre> 
    113  * 'name' => 'de.linkm.taviewer', 
     112 * 'name' => 'net.nehmer.static', 
    114113 * 'purecode' => false, 
    115114 * 'version' => 1, 
     
    127126 * 
    128127 * <code> 
    129  * class de_linkm_taviewer_interface extends midcom_baseclasses_components_interface 
     128 * class net_nehmer_static_interface extends midcom_baseclasses_components_interface 
    130129 * { 
    131  *     function de_linkm_taviewer_interface() 
     130 *     function net_nehmer_static_interface() 
    132131 *     { 
    133132 *         parent::midcom_baseclasses_components_interface(); 
    134133 * 
    135  *         $this->_component = 'de.linkm.taviewer'; 
     134 *         $this->_component = 'net.nehmer.static'; 
    136135 *         $this->_autoload_files = Array('viewer.php', 'admin.php', 'navigation.php', 'my_special_mgd_schema_class.php'); 
    137  *         $this->_autoload_libraries = Array('midcom.helper.datamanager'); 
     136 *         $this->_autoload_libraries = Array('midcom.helper.datamanager2'); 
    138137 *     } 
    139138 * 
     
    205204 
    206205    /** 
    207      * The name of the component, e.g. de.linkm.taviewer 
     206     * The name of the component, e.g. net.nehmer.static 
    208207     * 
    209208     * @var string 
     
    243242 
    244243    /** 
    245      * This is the class suffix used when constructing the AIS handler class. 
    246      * It is appended to the component class prefix, f.x. resulting in 
    247      * de_linkm_taviewer_admin (as a default). 
    248      * 
    249      * @var string 
    250      */ 
    251     var $_ais_class_suffix = 'admin'; 
    252  
    253     /** 
    254244     * This is the class suffix used when constructing the NAP handler class. 
    255245     * It is appended to the component class prefix, f.x. resulting in 
    256      * de_linkm_taviewer_navigation (as a default). 
     246     * net_nehmer_static_navigation (as a default). 
    257247     * 
    258248     * @var string 
     
    263253     * This is the class suffix used when constructing the on-site handler class. 
    264254     * It is appended to the component class prefix, f.x. resulting in 
    265      * de_linkm_taviewer_viewer (as a default). 
     255     * net_nehmer_static_viewer (as a default). 
    266256     * 
    267257     * @var string 
     
    585575        $data =& $this->_context_data[$contextid]; 
    586576        $loader =& $_MIDCOM->get_component_loader(); 
    587         $class = $loader->path_to_prefix($this->_component) . '_'; 
    588         $class .= ($data['adminmode'] ? $this->_ais_class_suffix : $this->_site_class_suffix); 
     577        $class = $loader->path_to_prefix($this->_component) . '_' . $this->_site_class_suffix; 
    589578        $data['handler'] = new $class($current_object, $data['config']); 
    590579        if (is_a($data['handler'], 'midcom_baseclasses_components_request')) 
  • trunk/midcom/midcom.core/midcom/core/group_virtual.php

    r11742 r12102  
    1717 * 
    1818 * So, for example, the virtual group <i>approvers</i> of the component 
    19  * <i>de.linkm.taviewer</i> would be named <i>de.linkm.taviewer-approvers</i>. 
     19 * <i>net.nehmer.static</i> would be named <i>net.nehmer.static-approvers</i>. 
    2020 * 
    2121 * This handle is used in all places to refer to a virtual group. 
  • trunk/midcom/midcom.core/midcom/core/handler/configdm.php

    r12014 r12102  
    4242 *     'handler' => Array ('midcom_core_handler_configdm', 'configdm'), 
    4343 *     'fixed_args' => Array('config'), 
    44  *     'schemadb' => 'file:/de/linkm/taviewer/config/schemadb_config.inc', 
     44 *     'schemadb' => 'file:/net/nehmer/static/config/schemadb_config.inc', 
    4545 *     'schema' => 'config', 
    4646 * ); 
  • trunk/midcom/midcom.core/midcom/core/manifest.php

    r11359 r12102  
    2525 * 
    2626 * <code> 
    27  * 'name' => 'de.linkm.taviewer', 
     27 * 'name' => 'net.nehmer.static', 
    2828 * 'purecode' => false, 
    2929 * 'version' => 15, 
  • trunk/midcom/midcom.core/midcom/helper/_componentloader.php

    r11931 r12102  
    538538 
    539539    /** 
    540      * Helper, converting a component path (de.linkm.newsticker
    541      * to a snippetpath (/de/linkm/newsticker). 
     540     * Helper, converting a component path (net.nehmer.blog
     541     * to a snippetpath (/net/nehmer/blog). 
    542542     * 
    543543     * @param string $path      Input string. 
     
    550550 
    551551    /** 
    552      * Helper, converting a snippetpath (/de/linkm/newsticker
    553      * to a class prefix (de_linkm_newsticker). 
     552     * Helper, converting a snippetpath (/net/nehmer/blog
     553     * to a class prefix (net_nehmer_blog). 
    554554     * 
    555555     * @param string $snippetpath       Input string. 
     
    562562 
    563563    /** 
    564      * Helper, converting a component path (de.linkm.newsticker
    565      * to a class prefix (de_linkm_newsticker). 
     564     * Helper, converting a component path (net.nehmer.blog
     565     * to a class prefix (net_nehmer_blog). 
    566566     * 
    567567     * @param string $path      Input string. 
  • trunk/midcom/midcom.core/midcom/services/auth.php

    r12029 r12102  
    3232 * syntax to be $component:$name, where $component is either the name of the component 
    3333 * or one of 'midgard' or 'midcom' for core privileges. Valid privilege names are for 
    34  * example 'de.linkm.taviewer:do_something' or 'midgard:update'. 
     34 * example 'net.nehmer.static:do_something' or 'midgard:update'. 
    3535 * 
    3636 * The assignee is the entity to which the privilege applies, this can be one of several 
  • trunk/midcom/midcom.core/midcom/services/cron.php

    r11359 r12102  
    3737 *         Array 
    3838 *         ( 
    39  *             'handler' => 'de_linkm_taviewer_crontest', 
     39 *             'handler' => 'net_nehmer_static_cron_test', 
    4040 *             'handler_config' => Array ('test', 'configuration', 'entries'), 
    4141 *             'recurrence' => MIDCOM_CRON_MINUTE, 
     
    4949 * <code> 
    5050 * <?php 
    51  * class de_linkm_taviewer_crontest extends midcom_baseclasses_components_cron_handler 
     51 * class net_nehmer_static_cron_test extends midcom_baseclasses_components_cron_handler 
    5252 * { 
    5353 *     function _on_initialize() 
     
    6868 * The component does not need to load the class automatically, instead, it can resort on the 
    6969 * auto-loading feature of the service. It will look for the handler in a file named after it, 
    70  * by replacing the underscores with slashes: The above handler de_linkm_taviewer_crontest 
    71  * would be searched in de/linkm/taviewer/crontest.php, relative to MIDCOM_ROOT. 
     70 * by replacing the underscores with slashes: The above handler net_nehmer_static_cron_test 
     71 * would be searched in net/nehmer/static/cron/test.php, relative to MIDCOM_ROOT. 
    7272 * 
    7373 * <b>Cron Job implementation suggestions</b> 
  • trunk/midcom/midcom.core/midcom/services/dbclassloader.php

    r11925 r12102  
    241241     * arguments, the first specifying the place to look for the latter. 
    242242     * 
    243      * For example, if you call load_classes('de.linkm.taviewer', 'my_classes.inc'), it will 
    244      * look in the directory MIDCOM_ROOT/de/linkm/taviewer/config/my_classes.inc. The magic 
     243     * For example, if you call load_classes('net.nehmer.static', 'my_classes.inc'), it will 
     244     * look in the directory MIDCOM_ROOT/net/nehmer/static/config/my_classes.inc. The magic 
    245245     * component 'midcom' goes for the MIDCOM_ROOT/midcom/config directory and is reserved 
    246246     * for MidCOM core classes and compatibility classes. 
  • trunk/midcom/midcom.core/midcom/services/permalinks.php

    r4858 r12102  
    125125            { 
    126126                // Verify that this topic is within the current sites tree, if it is not, 
    127                 // we ignore it. This might happen on symlink topics with taviewer & co 
     127                // we ignore it. This might happen on symlink topics with static & co 
    128128                // which point to the outside f.x. 
    129129                if ($nav->is_node_in_tree($parent->id, $nav->get_root_node())) 
  • trunk/midcom/net.nehmer.jobmarket/midcom/interfaces.php

    r12014 r12102  
    1717 * 
    1818 * This component is not designed to serve as your companies personal job ticker. Usually 
    19  * you will fare better with a simple newsticker or taviewer there. Use this component only 
     19 * you will fare better with a simple blog or static there. Use this component only 
    2020 * if you want to have a large number of jobs to manage. 
    2121 * 
  • trunk/midcom/net.nemein.ping/config/config.inc

    r4300 r12102  
    22'components_to_ping' => array 
    33( 
    4     'de.linkm.newsticker', 
    54    'net.nemein.wiki', 
    6     'net.siriux.photos', 
     5    'org.routamc.photostream', 
    76    'net.nehmer.blog', 
    87), 
  • trunk/midcom/net.nemein.ping/config/manifest.inc

    r5837 r12102  
    2626  array ( 
    2727    'summary' => 'Weblog pinger service', 
    28     'description' => 'Tool that pings weblogs.com and other services when de.linkm.newsticker postings have been updated', 
     28    'description' => 'Tool that pings weblogs.com and other services when net.nehmer.blog postings have been updated', 
    2929    'maintainers' =>  
    3030    array ( 
  • trunk/midcom/org.openpsa.directmarketing/config/schemadb_default_message.inc

    r5413 r12102  
    121121    ), 
    122122), 
    123 /* TODO: hide newsletter if midcom_helper_find_node_by_component(de.linkm.newsticker) returns no results */ 
     123/* TODO: hide newsletter if midcom_helper_find_node_by_component(net.nehmer.blog) returns no results */ 
    124124'htmlnewsletter' => array ( 
    125125    'description' => 'HTML newsletter email', 
  • trunk/midcom/org.openpsa.directmarketing/style/compose-newsletter-message.php

    r5048 r12102  
    33echo $data['message_array']['content']; 
    44 
    5 $newsticker_node = midcom_helper_find_node_by_component('de.linkm.newsticker'); 
    6 if ($newsticker_node) 
     5$blog_node = midcom_helper_find_node_by_component('net.nehmer.blog'); 
     6if ($blog_node) 
    77{ 
    8     /* 
    9     echo "newsticker_node:<pre>\n"; 
    10     print_r($newsticker_node); 
    11     echo "</pre>\n"; 
    12     */ 
    13     //echo "{$newsticker_node[MIDCOM_NAV_RELATIVEURL]}latest/{$data['message_array']['newsitems']}"; 
    14     $_MIDCOM->dynamic_load("{$newsticker_node[MIDCOM_NAV_RELATIVEURL]}latest/{$data['message_array']['newsitems']}"); 
     8    $_MIDCOM->dynamic_load("{$blog_node[MIDCOM_NAV_RELATIVEURL]}latest/{$data['message_array']['newsitems']}"); 
    159} 
    1610?>