Public Member Functions | |
| AdminDashboardView ($userInfo, $userBlogs) | |
| _loadViewData () | |
| render () | |
| setUserInfo () | |
Public Attributes | |
| $_userInfo | |
| $_userBlogs | |
| $_config | |
Definition at line 28 of file admindashboardview.class.php.
| AdminDashboardView.AdminDashboardView | ( | $ | userInfo, | |
| $ | userBlogs | |||
| ) |
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.
Definition at line 41 of file admindashboardview.class.php.
References _loadViewData(), Config.getConfig(), and View.View().
| AdminDashboardView._loadViewData | ( | ) |
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
Definition at line 60 of file admindashboardview.class.php.
References $articles.
Referenced by AdminDashboardView().
| AdminDashboardView.render | ( | ) |
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
Reimplemented from View.
Definition at line 119 of file admindashboardview.class.php.
References Locales.getLocale(), View.setCharset(), and View.setValue().
| AdminDashboardView.setUserInfo | ( | ) |
Definition at line 143 of file admindashboardview.class.php.
| AdminDashboardView.$_userInfo |
Definition at line 31 of file admindashboardview.class.php.
| AdminDashboardView.$_userBlogs |
Definition at line 32 of file admindashboardview.class.php.
| AdminDashboardView.$_config |
Definition at line 33 of file admindashboardview.class.php.