[ Index ]
 

Code source de b2evolution 2.1.0-beta

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/blogs/inc/collections/model/ -> _collsettings.class.php (source)

   1  <?php
   2  /**

   3   * This file implements the CollectionSettings class which handles

   4   * coll_ID/name/value triplets for collections/blogs.

   5   *

   6   * This file is part of the evoCore framework - {@link http://evocore.net/}

   7   * See also {@link http://sourceforge.net/projects/evocms/}.

   8   *

   9   * @copyright (c)2003-2007 by Francois PLANQUE - {@link http://fplanque.net/}

  10   *

  11   * {@internal License choice

  12   * - If you have received this file as part of a package, please find the license.txt file in

  13   *   the same folder or the closest folder above for complete license terms.

  14   * - If you have received this file individually (e-g: from http://evocms.cvs.sourceforge.net/)

  15   *   then you must choose one of the following licenses before using the file:

  16   *   - GNU General Public License 2 (GPL) - http://www.opensource.org/licenses/gpl-license.php

  17   *   - Mozilla Public License 1.1 (MPL) - http://www.opensource.org/licenses/mozilla1.1.php

  18   * }}

  19   *

  20   * {@internal Open Source relicensing agreement:

  21   * }}

  22   *

  23   * @package evocore

  24   *

  25   * {@internal Below is a list of authors who have contributed to design/coding of this file: }}

  26   * @author fplanque: Francois PLANQUE

  27   *

  28   * @version $Id: _collsettings.class.php,v 1.4 2007/11/03 04:56:03 fplanque Exp $

  29   *

  30   */
  31  if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
  32  
  33  load_class('settings/model/_abstractsettings.class.php');
  34  
  35  /**

  36   * Class to handle the settings for collections/blogs

  37   *

  38   * @package evocore

  39   */
  40  class CollectionSettings extends AbstractSettings
  41  {
  42      /**

  43       * The default settings to use, when a setting is not defined in the database.

  44       *

  45       * @access protected

  46       */
  47      var $_defaults = array(
  48              'new_feedback_status' => 'draft',      // 'draft', 'published' or 'deprecated'
  49              'archive_mode'   => 'monthly',            // monthly, weekly, daily, postbypost
  50              'archive_links'  => 'param',                // param, extrapath
  51              'chapter_links'  => 'param_num',        // 'param_num', 'subchap', 'chapters'
  52              'single_links'   => 'param_title',
  53              'permalinks'     => 'single',                // single, archive, subchap
  54              'ping_plugins'   => 'ping_pingomatic,ping_b2evonet', // ping plugin codes, separated by comma
  55              'orderby'        => 'datestart',
  56              'orderdir'       => 'DESC',
  57              'what_to_show'   => 'posts',        // posts, days
  58              'posts_per_page' => '5',
  59              'feed_content'   => 'normal',
  60              'posts_per_feed' => '8',
  61              'allow_subscriptions' => 0,                    // Don't all email subscriptions by default
  62              'use_workflow' => 0,                                // Don't use workflow by default
  63              'aggregate_coll_IDs' => '',
  64              'allow_rating'   => 'never',
  65              'canonical_item_urls' => 1,                    // Redirect posts to their canonical Url?
  66              'canonical_cat_urls' => 1,                    // Redirect categories to their canonical Url?
  67              'default_noindex' => '0',                        // META NOINDEX on Default blog page
  68              'paged_noindex' => '1',                            // META NOINDEX on following blog pages
  69              'archive_noindex' => '1',                        // META NOINDEX on Archive pages
  70              'category_noindex' => '1',                    // META NOINDEX on Category pages
  71              'filtered_noindex' => '1',                    // META NOINDEX on other filtered pages
  72              'arcdir_noindex' => '1',                        // META NOINDEX on Archive directory
  73              'catdir_noindex' => '1',                        // META NOINDEX on Category directory
  74              'feedback-popup_noindex' => '1',        // META NOINDEX on Feedback popups
  75              'msgform_noindex' => '1',                        // META NOINDEX on Message forms
  76              'special_noindex' => '1',                        // META NOINDEX on other special pages
  77              'title_link_type' => 'permalink',
  78          );
  79  
  80  
  81      /**

  82       * Constructor

  83       */
  84  	function CollectionSettings()
  85      {
  86          parent::AbstractSettings( 'T_coll_settings', array( 'cset_coll_ID', 'cset_name' ), 'cset_value', 1 );
  87      }
  88  
  89      /**

  90       * Loads the settings. Not meant to be called directly, but gets called

  91       * when needed.

  92       *

  93       * @access protected

  94       * @param string First column key

  95       * @param string Second column key

  96       * @return boolean

  97       */
  98  	function _load( $coll_ID, $arg )
  99      {
 100          if( empty( $coll_ID ) )
 101          {
 102              return false;
 103          }
 104  
 105          return parent::_load( $coll_ID, $arg );
 106      }
 107  
 108  }
 109  
 110  
 111  /*

 112   * $Log: _collsettings.class.php,v $

 113   * Revision 1.4  2007/11/03 04:56:03  fplanque

 114   * permalink / title links cleanup

 115   *

 116   * Revision 1.3  2007/11/02 01:46:53  fplanque

 117   * comment ratings

 118   *

 119   * Revision 1.2  2007/09/28 09:28:36  fplanque

 120   * per blog advanced SEO settings

 121   *

 122   * Revision 1.1  2007/06/25 10:59:33  fplanque

 123   * MODULES (refactored MVC)

 124   *

 125   * Revision 1.17  2007/05/13 22:53:31  fplanque

 126   * allow feeds restricted to post excerpts

 127   *

 128   * Revision 1.16  2007/04/26 00:11:06  fplanque

 129   * (c) 2007

 130   *

 131   * Revision 1.15  2007/03/24 20:41:16  fplanque

 132   * Refactored a lot of the link junk.

 133   * Made options blog specific.

 134   * Some junk still needs to be cleaned out. Will do asap.

 135   *

 136   * Revision 1.14  2007/01/23 09:25:40  fplanque

 137   * Configurable sort order.

 138   *

 139   * Revision 1.13  2007/01/15 03:54:36  fplanque

 140   * pepped up new blog creation a little more

 141   *

 142   * Revision 1.12  2006/12/17 23:42:38  fplanque

 143   * Removed special behavior of blog #1. Any blog can now aggregate any other combination of blogs.

 144   * Look into Advanced Settings for the aggregating blog.

 145   * There may be side effects and new bugs created by this. Please report them :]

 146   *

 147   * Revision 1.11  2006/12/16 01:30:46  fplanque

 148   * Setting to allow/disable email subscriptions on a per blog basis

 149   *

 150   * Revision 1.10  2006/12/14 21:41:15  fplanque

 151   * Allow different number of items in feeds than on site

 152   *

 153   * Revision 1.9  2006/12/10 23:56:26  fplanque

 154   * Worfklow stuff is now hidden by default and can be enabled on a per blog basis.

 155   *

 156   * Revision 1.8  2006/12/04 19:41:11  fplanque

 157   * Each blog can now have its own "archive mode" settings

 158   *

 159   * Revision 1.7  2006/12/04 18:16:50  fplanque

 160   * Each blog can now have its own "number of page/days to display" settings

 161   *

 162   * Revision 1.6  2006/11/24 18:27:23  blueyed

 163   * Fixed link to b2evo CVS browsing interface in file docblocks

 164   *

 165   * Revision 1.5  2006/10/10 23:29:01  blueyed

 166   * Fixed default for "ping_plugins"

 167   *

 168   * Revision 1.4  2006/10/01 22:11:42  blueyed

 169   * Ping services as plugins.

 170   */
 171  ?>


Généré le : Thu Nov 29 23:58:50 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics