[ Index ] |
|
Code source de b2evolution 2.1.0-beta |
[Code source] [Imprimer] [Statistiques]
This file implements the ItemLight class. This file is part of the evoCore framework - {@link http://evocore.net/} See also {@link http://sourceforge.net/projects/evocms/}.
Author: | fplanque: Francois PLANQUE. |
Copyright: | (c)2003-2007 by Francois PLANQUE - {@link http://fplanque.net/} |
Version: | $Id: _itemlight.class.php,v 1.6 2007/11/03 23:54:38 fplanque Exp $ |
Poids: | 1090 lignes (30 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
ItemLight:: (26 méthodes):
ItemLight()
get_single_url()
get_archive_url()
get_chapter_url()
get_permanent_url()
categories()
main_category()
get_Chapters()
get_issue_date()
issue_date()
issue_time()
lang()
locale()
locale_flag()
locale_temp_switch()
language()
mod_date()
mod_time()
permanent_url()
get_permanent_link()
permanent_link()
title()
type()
get_excerpt()
set()
load_Blog()
ItemLight( $db_row = NULL, $dbtable = 'T_items__item', $dbprefix = 'post_', $dbIDname = 'post_ID', $objtype = 'ItemLight', $datecreated_field = '', $datemodified_field = 'datemodified', $creator_field = '', $lasteditor_field = '' ) X-Ref |
Constructor param: object table Database row param: string param: string param: string param: string for derived classes param: string datetime field name param: string datetime field name param: string User ID field name param: string User ID field name |
get_single_url( $allow_redir = true, $blogurl = '', $glue = '&' ) X-Ref |
Generate a single post link for the item param: boolean allow redir to permalink, true | false | 'auto' to prevent redit only if single isn't the current permalink type param: string base url to use param: string glue between url params |
get_archive_url( $blogurl = '', $glue = '&' ) X-Ref |
Generate a link to the post in the archives param: string base url to use param: string glue between url params |
get_chapter_url( $blogurl = '', $glue = '&' ) X-Ref |
Generate a link to the post in the category param: string base url to use param: string glue between url params |
get_permanent_url( $permalink_type = '', $blogurl = '', $glue = '&' ) X-Ref |
Generate the permalink for the item. Note: Each item has an unique permalink at any given time. Some admin settings may however change the permalinks for previous items. Note: This actually only returns the URL, to get a real link, use {@link Item::get_permanent_link()} param: string single, archive, subchap param: string base url to use param: string glue between url params |
categories( $params = array() X-Ref |
Template function: list all the category names param: string Output format for each cat, see {@link format_to_output()} |
main_category( $format = 'htmlbody' ) X-Ref |
Template function: display main category name param: string Output format, see {@link format_to_output()} |
get_Chapters() X-Ref |
Get list of Chapter objects. return: array of {@link Chapter chapters} (references) |
get_issue_date( $params = array() X-Ref |
Pas de description |
issue_date( $params = array() X-Ref |
Template function: display issue date (datetime) of Item |
issue_time( $params = array() X-Ref |
Template function: display issue time (datetime) of Item |
lang() X-Ref |
Template function: display locale for item |
locale() X-Ref |
Template function: display locale for item |
locale_flag( $params = array() X-Ref |
Template tag |
locale_temp_switch() X-Ref |
Template function: Temporarily switch to this post's locale |
language( $format = 'htmlbody' ) X-Ref |
Template function: display language name for item param: string Output format, see {@link format_to_output()} |
mod_date( $format = '', $useGM = false ) X-Ref |
Template function: display last mod date (datetime) of Item param: string date/time format: leave empty to use locale default date format param: boolean true if you want GMT |
mod_time( $format = '', $useGM = false ) X-Ref |
Template function: display last mod time (datetime) of Item param: string date/time format: leave empty to use locale default time format param: boolean true if you want GMT |
permanent_url( $mode = '', $blogurl='' ) X-Ref |
Template function: display permalink for item Note: This actually only outputs the URL, to display a real link, use {@link Item::permanent_link()} param: string 'post', 'archive#id' or 'archive#title' param: string url to use |
get_permanent_link( $text = ') X-Ref |
Returns a permalink link to the Item Note: If you only want the permalink URL, use {@link Item::get_permanent_url()} param: string link text or special value: '#', '#icon#', '#text#', '#title#' '... $title$ ...' param: string link title param: string class name |
permanent_link( $params = array() X-Ref |
Displays a permalink link to the Item Note: If you only want the permalink URL, use {@link Item::permanent_url()} param: string link text or special value: param: string link title param: string class name |
title( $params = array() X-Ref |
Template function: display title for item and link to related URL |
type( $before = '', $after = '', $format = 'htmlbody' ) X-Ref |
Template function: display type of item param: string param: string param: string Output format, see {@link format_to_output()} |
get_excerpt( $format = 'htmlbody' ) X-Ref |
Template function: get excerpt param: string filename to use to display more return: string |
set( $parname, $parvalue, $make_null = false ) X-Ref |
Set param value By default, all values will be considered strings param: string parameter name param: mixed parameter value param: boolean true to set to NULL if empty value return: boolean true, if a value has been set; false if it has not changed |
load_Blog() X-Ref |
Pas de description |
Généré le : Thu Nov 29 23:58:50 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |