b2evolution

Multilingual multiuser multiblog engine

b2evolution Technical Documentation (Version 2.4) [ class tree: evocore ] [ index: evocore ] [ all elements ]

Class: CollectionSettings

Source Location: /blogs/inc/collections/model/_collsettings.class.php

Class CollectionSettings

Inherited Properties, Constants, and Methods
Inherited Properties Inherited Methods Inherited Constants

Inherited From AbstractSettings

AbstractSettings::$all_loaded
AbstractSettings::$cache
AbstractSettings::$cache_by_col_keys
AbstractSettings::$col_key_names
AbstractSettings::$col_value_name
AbstractSettings::$db_table_name

Inherited From AbstractSettings

AbstractSettings::AbstractSettings()
Constructor.
AbstractSettings::dbupdate()
Commit changed settings to DB.
AbstractSettings::delete()
Remove a setting.
AbstractSettings::delete_array()
Delete an array of values.
AbstractSettings::get()
Get a setting from the DB settings table.
AbstractSettings::get_cond()
Only set the first variable (passed by reference) if we could retrieve a setting.
AbstractSettings::get_default()
Get the default for the last key of $col_key_names
AbstractSettings::load_all()
Load all settings, disregarding the derived classes setting of $cache_by_col_keys
  • useful if you know that you want to get
all user settings for example.
AbstractSettings::reset()
Reset cache (includes settings to be written to DB).
AbstractSettings::restore_defaults()
Delete values for $_defaults in DB.
AbstractSettings::set()
Temporarily sets a setting (dbupdate() writes it to DB).
AbstractSettings::set_array()
Set an array of values.
AbstractSettings::_load()
Loads the settings. Not meant to be called directly, but gets called when needed.

[ Top ]
Property Summary
mixed   $_defaults   The default settings to use, when a setting is not defined in the database.

[ Top ]
Method Summary
CollectionSettings   CollectionSettings()   Constructor
boolean   _load()   Loads the settings. Not meant to be called directly, but gets called when needed.

[ Top ]
Properties
mixed   $_defaults = array(
'new_feedback_status' => 'draft', // 'draft', 'published' or 'deprecated'

'ping_plugins' => 'ping_pingomatic,ping_b2evonet', // ping plugin codes, separated by comma
'orderby' => 'datestart',
'orderdir' => 'DESC',
'what_to_show' => 'posts', // posts, days
'posts_per_page' => '5',
'feed_content' => 'normal',
'posts_per_feed' => '8',
'allow_subscriptions' => 0, // Don't all email subscriptions by default
'use_workflow' => 0, // Don't use workflow by default
'aggregate_coll_IDs' => '',
'allow_rating' => 'never',

'canonical_item_urls' => 1, // Redirect posts to their canonical Url?
'default_noindex' => '0', // META NOINDEX on Default blog page

'paged_noindex' => '1', // META NOINDEX on following blog pages
'paged_nofollowto' => '0', // NOFOLLOW on links to following blog pages

'archive_mode' => 'monthly', // monthly, weekly, daily, postbypost
'archive_links' => 'extrapath', // param, extrapath
'archive_posts_per_page' => '100',
'archive_noindex' => '1', // META NOINDEX on Archive pages
'archive_nofollowto' => '0', // NOFOLLOW on links to archive pages

'chapter_links' => 'chapters', // 'param_num', 'subchap', 'chapters'
'canonical_cat_urls' => 1, // Redirect categories to their canonical Url?
'chapter_posts_per_page' => NULL,
'chapter_noindex' => '1', // META NOINDEX on Category pages
'category_prefix' => '',

'tag_links' => 'colon', // 'param', 'semicol'
'canonical_tag_urls' => 1, // Redirect tag pages to their canonical Url?
'tag_posts_per_page' => NULL,
'tag_noindex' => '1', // META NOINDEX on Tag pages
'tag_prefix' => '',

'single_links' => 'ymd',
'permalinks' => 'single', // single, archive, subchap

'filtered_noindex' => '1', // META NOINDEX on other filtered pages
'arcdir_noindex' => '1', // META NOINDEX on Archive directory
'catdir_noindex' => '1', // META NOINDEX on Category directory
'feedback-popup_noindex' => '1', // META NOINDEX on Feedback popups
'msgform_noindex' => '1', // META NOINDEX on Message forms
'special_noindex' => '1', // META NOINDEX on other special pages
'title_link_type' => 'permalink',

'blog_footer_text' => '©$year$ by $owner$',
'single_item_footer_text' => '',
'xml_item_footer_text' => '<p><small><a href="$item_perm_url$">Original post</a> blogged on <a href="http://b2evolution.net/">b2evolution</a>.</small></p>',
'atom_redirect' => '',
'rss2_redirect' => '',
)
[line 47]

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

API Tags:
Access:  protected


Redefinition of:
AbstractSettings::$_defaults
Default settings.

[ Top ]
Methods
Constructor CollectionSettings  [line 108]

  CollectionSettings CollectionSettings( )

Constructor



[ Top ]
_load  [line 122]

  boolean _load( string $coll_ID, string $arg  )

Loads the settings. Not meant to be called directly, but gets called when needed.

Parameters:
string   $coll_ID:  First column key
string   $arg:  Second column key

API Tags:
Access:  protected


Redefinition of:
AbstractSettings::_load()
Loads the settings. Not meant to be called directly, but gets called when needed.

[ Top ]

Documentation generated on Sat, 06 Mar 2010 03:29:06 +0100 by phpDocumentor 1.4.2. This site is hosted and maintained by Daniel HAHLER (Contact).