[pLog-svn] r2891 - plog/trunk/class/action/admin
jondaley at devel.lifetype.net
jondaley at devel.lifetype.net
Fri Feb 3 14:04:23 GMT 2006
Author: jondaley
Date: 2006-02-03 14:04:23 +0000 (Fri, 03 Feb 2006)
New Revision: 2891
Removed:
plog/trunk/class/action/admin/adminglobalarticlecategorieslistview.class.php
Log:
old file? http://bugs.lifetype.net/view.php?id=816
Deleted: plog/trunk/class/action/admin/adminglobalarticlecategorieslistview.class.php
===================================================================
--- plog/trunk/class/action/admin/adminglobalarticlecategorieslistview.class.php 2006-02-03 13:55:49 UTC (rev 2890)
+++ plog/trunk/class/action/admin/adminglobalarticlecategorieslistview.class.php 2006-02-03 14:04:23 UTC (rev 2891)
@@ -1,65 +0,0 @@
-<?php
-
- /**
- * GLobal artical Category files added by Ameng(Ameng.vVlogger.com) 2005-06-20
- * version 1.0
- * Changed from original article category.
- */
-
- include_once( PLOG_CLASS_PATH."class/view/admin/admintemplatedview.class.php" );
- include_once( PLOG_CLASS_PATH."class/dao/globalarticlecategories.class.php" );
- include_once( PLOG_CLASS_PATH."class/data/pager/pager.class.php" );
-
- /**
- * \ingroup View
- * @private
- *
- * Action that shows a form to add a link for the blogroll feature
- */
- class AdminGlobalArticleCategoriesListView extends AdminTemplatedView
- {
- var $_page;
-
- /**
- * Constructor. If nothing else, it also has to call the constructor of the parent
- * class, BlogAction with the same parameters
- */
- function AdminGlobalArticleCategoriesListView( $blogInfo, $params = Array())
- {
- $this->AdminTemplatedView( $blogInfo, "globalsettings_articlecategories" );
- }
-
- /**
- * Carries out the specified action
- */
- function render()
- {
- // prepare a few parameters
- $categories = new GlobalArticleCategories();
-
- // get the page too
- $this->_page = $this->getCurrentPageFromRequest();
-
- // retrieve the categories in an paged fashion
- $totalCategories = $categories->getNumCategories();
-
- $globalCategories = $categories->getAllCategories();
-
- if( !$globalCategories ) {
- $globalCategories = Array();
- }
-
- // throw the even in case somebody's waiting for it!
- $this->notifyEvent( EVENT_CATEGORIES_LOADED, Array( "categories" => &$globalCategories ));
- $this->setValue( "categories", $globalCategories );
-
- // the pager that will be used
- $pager = new Pager( "?op=editGlobalArticleCategories&searchTerms=".$this->_searchTerms."&page=",
- $this->_page,
- $totalCategories,
- DEFAULT_ITEMS_PER_PAGE );
- $this->setValue( "pager", $pager );
- parent::render();
- }
- }
-?>
More information about the pLog-svn
mailing list