[ Index ]
 

Code source de LifeType 1.2.4

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/class/view/ -> blogview.class.php (sommaire)

default date format used for the archive links

Poids: 289 lignes (10 kb)
Inclus ou requis:0 fois
Référencé: 5 fois
Nécessite: 0 fichiers

Définit 1 class

BlogView:: (12 méthodes):
  BlogView()
  generateCalendar()
  notifyEvent()
  _getArchives()
  _getRecentPosts()
  _getMonthPosts()
  _getLinkCategories()
  _getArticleCategories()
  preProcessViewContents()
  getPageTitle()
  setPageTitle()
  render()


Classe: BlogView  - X-Ref

\ingroup View

Extends the SmartyView class to provide support for common operations, for example
to automatically add support for locale. It is recommended
that all classes that generate a view extend from this unless strictly necessary.
BlogView( $blogInfo, $template, $cachingEnabled = SMARTY_VIEW_CACHE_CHECK, $data = Array()   X-Ref


generateCalendar( $year = null, $month = null )   X-Ref
Generates an html calendar based on the posts for the given month

param: year
param: month

notifyEvent( $eventType, $params = Array()   X-Ref
notifies of a throwable event

param: eventType The code of the event we're throwing
param: params Array with the event parameters

_getArchives()   X-Ref
Fetches the stats for the archives


_getRecentPosts()   X-Ref
Retrieves the most recent posts


_getMonthPosts()   X-Ref
Retrieves all the posts for the current month


_getLinkCategories()   X-Ref
Retrieves the links


_getArticleCategories()   X-Ref
Fetches the article categories for the given blog


preProcessViewContents( $content )   X-Ref

param: content
return: The content

getPageTitle()   X-Ref
This method must be implemented by child classes and it is meant
to return the title for the current page, to make it easier for template
designers to automatically provide meaningful page titles

return: A string containing the appropriate page title

setPageTitle( $title )   X-Ref
This method sets the page title and can be called by action classes
instantiating this view to set a meaningful page title.

param: title A string containing the appropriate page title

render()   X-Ref
Sets some  in this case, we leave it all up to the child classes to reimplement
this and by default call View::render()

returns: always true



Généré le : Mon Nov 26 21:04:15 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics