[ 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/admin/ -> admindashboardview.class.php (sommaire)

maximum number of recent items that we will show in the statistics

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

Définit 1 class

AdminDashboardView:: (4 méthodes):
  AdminDashboardView()
  _loadViewData()
  render()
  setUserInfo()


Classe: AdminDashboardView  - X-Ref

\ingroup View

AdminDashboardView( $userInfo, $userBlogs )   X-Ref
This initializes the class, but normally we'll only have to initialize the parent

It gets the BlogSettings object since we need to know a few things about the blog we're
rendering before doing this.

_loadViewData()   X-Ref
normally views do not meddle with data but in this case moving all
this data fetching here is benefitial from a coding point of view, because it
allows this code to be reused by several action classes... In the worst case
we would have to copy+paste the code or put in a separate class only for this bit
of code. By moving it here, the view itself can handle everything


render()   X-Ref
Renders the view. It simply gets all the parameters we've been adding to it
and puts them in the context of the template renderer so that they can be accessed
as normal parameters from within the template


setUserInfo()   X-Ref
Pas de description



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