b2evolution

Multilingual multiuser multiblog engine

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

Procedural File: _item.funcs.php

Source Location: /blogs/inc/items/model/_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.7.2.5 2009/06/01 16:58:11 tblue246 Exp $
Copyright:  

(c)2003-2008 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
attach_browse_tabs  [line 551]

void attach_browse_tabs( )

Used by the items & the comments controllers



[ Top ]
bpost_count_words  [line 263]

integer bpost_count_words( string $string  )

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

Parameters:
string   $string: 


[ Top ]
cat_select  [line 358]

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 534]

void cat_select_after_each( $cat_ID, $level  )

callback after each sublist element

Parameters:
   $cat_ID: 
   $level: 


[ Top ]
cat_select_after_last  [line 542]

void cat_select_after_last( $parent_cat_ID, $level  )

callback to end sublist

Parameters:
   $parent_cat_ID: 
   $level: 


[ Top ]
cat_select_before_each  [line 469]

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 461]

void cat_select_before_first( $parent_cat_ID, $level  )

callback to start sublist

Parameters:
   $parent_cat_ID: 
   $level: 


[ Top ]
cat_select_header  [line 445]

void cat_select_header( )

Header for cat_select()



[ Top ]
get_postdata  [line 194]

void get_postdata( $postid  )

if global $postdata was not set it will be

Parameters:
   $postid: 


[ Top ]
init_MainList  [line 45]

void init_MainList( integer $items_nb_limit  )

Prepare the MainList object for displaying skins.

Parameters:
integer   $items_nb_limit:  max # of posts on the page


[ Top ]
item_ink_by_urltitle  [line 637]

void item_ink_by_urltitle( [ $params = array()]  )

Template tag: Link to an item identified by its url title / slug / name

Note: this will query the database. Thus, in most situations it will make more sense to use a hardcoded link. This tag can be useful for prototyping location independant sites.

Parameters:
   $params: 


[ Top ]
statuses_where_clause  [line 294]

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 ]
urltitle_validate  [line 115]

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

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 (encoded in $evo_charset)
integer   $post_ID:  ID of post
boolean   $query_only:  Query the DB, but don't modify the URL title if the title already exists (Useful if you only want to alert the pro user without making changes for him?)
string   $dbprefix:  The prefix of the database column names (e. g. "post_" for post_urltitle)
string   $dbIDname:  The name of the post ID column
string   $dbtable:  The name of the DB table to use

API Tags:
Return:  validated url title

Information Tags:
Todo:  Use configurable char as separator (see tracker)
Todo:  dh> Allow/Use more than 40 chars

[ Top ]
visibility_select  [line 601]

void visibility_select( &$Form, $post_status  )

Allow to select status/visibility

Parameters:
   &$Form: 
   $post_status: 


[ Top ]


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