| [ Index ] |
|
Code source de b2evolution 2.1.0-beta |
[Code source] [Imprimer] [Statistiques]
This file implements the Blog class. This file is part of the evoCore framework - {@link http://evocore.net/} See also {@link http://sourceforge.net/projects/evocms/}.
| Author: | blueyed: Daniel HAHLER. |
| Author: | fplanque: Francois PLANQUE. |
| Author: | gorgeb: Bertrand GORGE / EPISTEMA |
| Author: | jeffbearer: Jeff BEARER |
| Author: | edgester: Jason EDGECOMBE |
| Copyright: | (c)2003-2007 by Francois PLANQUE - {@link http://fplanque.net/} |
| Version: | $Id: _blog.class.php,v 1.14 2007/11/04 17:55:12 fplanque Exp $ |
| Poids: | 1718 lignes (50 kb) |
| Inclus ou requis: | 0 fois |
| Référencé: | 0 fois |
| Nécessite: | 0 fichiers |
Blog:: (33 méthodes):
Blog()
init_by_kind()
kind_name()
load_from_Request()
set_media_subdir()
set_media_fullpath()
set_media_url()
set()
gen_blogurl()
gen_baseurl()
gen_archive_url()
get_archive_url()
get_allowed_item_status()
get_default_cat_ID()
get_media_dir()
get_media_url()
get_filemanager_link()
get_tempskin_url()
get_item_feed_url()
get_comment_feed_url()
get()
get_setting()
set_setting()
load_CollectionSettings()
dbinsert()
dbupdate()
dbdelete()
name()
tagline()
longdesc()
get_name()
contact_link()
get_contact_url()
| Blog( $db_row = NULL ) X-Ref |
| Constructor param: object DB row |
| init_by_kind( $kind ) X-Ref |
param: string |
| kind_name( $kind ) X-Ref |
param: string return: string |
| load_from_Request( $groups = array() X-Ref |
| Load data from Request form fields. param: array groups of params to load return: boolean true if loaded data seems valid. |
| set_media_subdir( $path ) X-Ref |
| Set the media folder's subdir param: string the subdirectory |
| set_media_fullpath( $path ) X-Ref |
| Set the full path of the media folder param: string the full path |
| set_media_url( $url ) X-Ref |
| Set the full URL of the media folder param: string the full URL |
| set( $parname, $parvalue ) X-Ref |
| Set param value param: string Parameter name return: boolean true, if a value has been set; false if it has not changed |
| gen_blogurl( $type = 'default' ) X-Ref |
| Generate blog URL param: string default|dynamic|static |
| gen_baseurl() X-Ref |
| Generate the baseurl of the blog (URL of the folder where the blog lives) |
| gen_archive_url( $year, $month = NULL, $day = NULL, $week = NULL, $glue = '&' ) X-Ref |
| Generate archive page URL Note: there ate two similar functions here. param: string year param: string month param: string day param: string week |
| get_archive_url( $date, $glue = '&' ) X-Ref |
| Get archive page URL Note: there ate two similar functions here. param: string monthly, weekly, daily |
| get_allowed_item_status( $status = NULL ) X-Ref |
| Get allowed post status for current user in this blog param: string status to start with. Empty to use default. return: string authorized status; NULL if none |
| get_default_cat_ID() X-Ref |
| Get default category for current blog |
| get_media_dir( $create = true ) X-Ref |
| Get the blog's media directory (and create it if necessary). If we're {@link is_admin_page() on an admin page}, it adds status messages. param: boolean Create the directory, if it does not exist yet? return: string path string on success, false if the dir could not be created |
| get_media_url() X-Ref |
| Get the URL to the media folder return: string the URL |
| get_filemanager_link() X-Ref |
| Get link to edit files param: string link (false on error) |
| get_tempskin_url( $skin_folder_name, $additional_params = '', $halt_on_error = false ) X-Ref |
| Get URL to display the blog with a temporary skin. param: string param: string param: boolean |
| get_item_feed_url( $skin_folder_name ) X-Ref |
| Get URL to display the blog posts in an XML feed. param: string |
| get_comment_feed_url( $skin_folder_name ) X-Ref |
| Get URL to display the blog comments in an XML feed. param: string |
| get( $parname ) X-Ref |
| Get a param. param: string Parameter name return: false|string The value as string or false in case of error (e.g. media dir is disabled). |
| get_setting( $parname ) X-Ref |
| Get a setting. return: string|false|NULL value as string on success; NULL if not found; false in case of error |
| set_setting( $parname, $value ) X-Ref |
| Set a setting. return: boolean true, if the value has been set, false if it has not changed. |
| load_CollectionSettings() X-Ref |
| Make sure collection settings are loaded |
| dbinsert() X-Ref |
| Insert into the DB |
| dbupdate() X-Ref |
| Update the DB based on previously recorded changes |
| dbdelete($delete_static_file = false, $echo = false ) X-Ref |
| Delete a blog and dependencies from database Includes WAY TOO MANY requests because we try to be compatible with MySQL 3.23, bleh! param: boolean true if you want to try to delete the static file param: boolean true if you want to echo progress |
| name( $params = array() X-Ref |
| Pas de description |
| tagline( $params = array() X-Ref |
| Pas de description |
| longdesc( $params = array() X-Ref |
| Pas de description |
| get_name() X-Ref |
| Get the name of the blog return: string |
| contact_link( $params ) X-Ref |
| Pas de description |
| get_contact_url( $with_redirect = true ) X-Ref |
param: boolean do we want to redirect back to where we came from after message? |
| Généré le : Thu Nov 29 23:58:50 2007 | par Balluche grâce à PHPXref 0.7 |
|