b2evolution

Multilingual multiuser multiblog engine

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

Procedural File: _item.funcs.php

Source Location: /blogs/inc/MODEL/items/_item.funcs.php

Page Details

This file implements Post handling functions.

This file is part of the evoCore framework - http://evocore.net/ See also http://sourceforge.net/projects/evocms/.

Author:  cafelog (team)
Author:  blueyed: Daniel HAHLER.
Author:  fplanque: Francois PLANQUE.
Author:  tswicegood: Travis SWICEGOOD.
Author:  vegarg: Vegar BERG GULDAL.
Version:  $Id: _item.funcs.php,v 1.18.2.8.2.3 2007/10/29 02:43:16 fplanque Exp $
Copyright:  

(c)2003-2007 by Francois PLANQUE - http://fplanque.net/ Parts of this file are copyright (c)2004-2006 by Daniel HAHLER - http://thequod.de/contact.

Filesource:  Source Code for this file
Functions
bpost_count_words  [line 700]

integer bpost_count_words( string $string  )

Returns the number of the words in a string, sans HTML

Parameters:
string   $string: 


[ Top ]
cat_select  [line 795]

void cat_select( [boolean $display_info = true], [boolean $form_fields = true]  )

Allow recursive category selection.

Parameters:
boolean   $display_info: 
boolean   $form_fields:  true: use form fields, false: display only

Information Tags:
Todo:  Allow to use a dropdown (select) to switch between blogs ( CSS / JS onchange - no submit.. )

[ Top ]
cat_select_after_each  [line 964]

void cat_select_after_each( $cat_ID, $level  )

callback after each sublist element

Parameters:
   $cat_ID: 
   $level: 


[ Top ]
cat_select_after_last  [line 972]

void cat_select_after_last( $parent_cat_ID, $level  )

callback to end sublist

Parameters:
   $parent_cat_ID: 
   $level: 


[ Top ]
cat_select_before_each  [line 893]

void cat_select_before_each( $cat_ID, $level, $total_count  )

callback to display sublist element

Parameters:
   $cat_ID: 
   $level: 
   $total_count: 


[ Top ]
cat_select_before_first  [line 885]

void cat_select_before_first( $parent_cat_ID, $level  )

callback to start sublist

Parameters:
   $parent_cat_ID: 
   $level: 


[ Top ]
cat_select_header  [line 869]

void cat_select_header( )

Header for cat_select()



[ Top ]
get_permalink  [line 599]

void get_permalink( $file, $id, [ $use_anchor_mode = ''], [ $use_destination = ''], [ $use_more = NULL], [ $use_comments = NULL], [ $use_trackback = NULL], [ $use_pingback = NULL]  )

Generate permalink

TODO: archives modes in clean mode

Parameters:
   $file: 
   $id: 
   $use_anchor_mode: 
   $use_destination: 
   $use_more: 
   $use_comments: 
   $use_trackback: 
   $use_pingback: 

API Tags:
Deprecated:  deprecated by Item::get_permanent_url()


[ Top ]
get_postdata  [line 129]

void get_postdata( $postid  )

get_postdata(-)

if global $postdata was not set it will be

Parameters:
   $postid: 


[ Top ]
link_pages  [line 198]

void link_pages( [ $before = '#'], [ $after = '#'], [ $next_or_number = 'number'], [ $nextpagelink = '#'], [ $previouspagelink = '#'], [ $pagelink = '%d'], [ $more_file = '']  )

link_pages(-)

vegarg: small bug when using $more_file fixed

Parameters:
   $before: 
   $after: 
   $next_or_number: 
   $nextpagelink: 
   $previouspagelink: 
   $pagelink: 
   $more_file: 


[ Top ]
next_post  [line 323]

void next_post( [ $format = '% >> '], [ $next = '#'], [ $title = 'yes'], [ $in_same_cat = 'no'], [ $limitnext = 1], [ $excluded_categories = ''], [ $in_same_blog = true]  )

next_post(-)

Parameters:
   $format: 
   $next: 
   $title: 
   $in_same_cat: 
   $limitnext: 
   $excluded_categories: 
   $in_same_blog: 

Information Tags:
Todo:  Move to ItemList
Todo:  dh> see WP's previous_post_link() for param ideas (using $link instead of $previous and $title). Also, use booleans of course! $in_same_blog would also be useful!

[ Top ]
next_posts  [line 405]

void next_posts( [ $max_page = 0], [ $page = '']  )

Display a link to next page of posts

Note: remove this tag from skin template if you don't want this functionality

Parameters:
   $max_page: 
   $page: 

Information Tags:
Todo:  move to ItemList

[ Top ]
next_posts_link  [line 464]

void next_posts_link( [ $label = '#'], [ $max_page = 0], [ $page = '']  )

Display a link to next page of posts

Note: remove this tag from skin template if you don't want this functionality

Parameters:
   $label: 
   $max_page: 
   $page: 

Information Tags:
Todo:  move to ItemList

[ Top ]
posts_nav_link  [line 539]

void posts_nav_link( [ $sep = ' :: '], [ $prelabel = '#'], [ $nxtlabel = '#'], [ $page = '']  )

Links to previous/next page

Note: remove this tag from skin template if you don't want this functionality

Parameters:
   $sep: 
   $prelabel: 
   $nxtlabel: 
   $page: 

Information Tags:
Todo:  move to ItemList

[ Top ]
previous_post  [line 249]

void previous_post( [ $format = '<< % '], [ $previous = '#'], [ $title = 'yes'], [ $in_same_cat = 'no'], [ $limitprev = 1], [ $excluded_categories = ''], [ $in_same_blog = true]  )

previous_post(-)

Parameters:
   $format: 
   $previous: 
   $title: 
   $in_same_cat: 
   $limitprev: 
   $excluded_categories: 
   $in_same_blog: 

Information Tags:
Todo:  Move to ItemList
Todo:  dh> see WP's previous_post_link() for param ideas (using $link instead of $previous and $title). Also, use booleans of course! $in_same_blog would also be useful!

[ Top ]
previous_posts  [line 436]

void previous_posts( [ $page = '']  )

Display a link to previous page of posts

Note: remove this tag from skin template if you don't want this functionality

Parameters:
   $page: 

Information Tags:
Todo:  move to ItemList

[ Top ]
previous_posts_link  [line 504]

void previous_posts_link( [ $label = '#'], [ $page = '']  )

Display a link to previous page of posts

Note: remove this tag from skin template if you don't want this functionality

Parameters:
   $label: 
   $page: 

Information Tags:
Todo:  move to ItemList

[ Top ]
statuses_where_clause  [line 731]

void statuses_where_clause( [Array $show_statuses = ''], [ $dbprefix = 'post_'], [ $req_blog = NULL]  )

Construct the where clause to limit retrieved posts on their status

Parameters:
Array   $show_statuses:  statuses of posts we want to get
   $dbprefix: 
   $req_blog: 


[ Top ]
the_weekday  [line 564]

void the_weekday( )

the_weekday(-)



[ Top ]
the_weekday_date  [line 577]

void the_weekday_date( [ $before = ''], [ $after = '']  )

the_weekday_date(-)

Parameters:
   $before: 
   $after: 


[ Top ]
urltitle_validate  [line 52]

string urltitle_validate( string $urltitle, string $title, [integer $post_ID = 0], [ $query_only = false], [ $dbprefix = 'post_'], [ $dbIDname = 'post_ID'], [ $dbtable = 'T_posts']  )

Validate URL title

Using title as a source if url title is empty

Parameters:
string   $urltitle:  url title to validate
string   $title:  real title to use as a source if $urltitle is empty
integer   $post_ID:  ID of post
   $query_only: 
   $dbprefix: 
   $dbIDname: 
   $dbtable: 

API Tags:
Return:  validated url title

Information Tags:
Todo:  Use configurable char as seperator (see tracker); replace umlauts

[ Top ]


Documentation generated on Tue, 20 May 2008 01:41:51 +0200 by phpDocumentor 1.4.2