[pLog-svn] r2946 - plog/branches/lifetype-1.0.4/class/action/admin
mark at devel.lifetype.net
mark at devel.lifetype.net
Mon Feb 13 07:46:20 GMT 2006
Author: mark
Date: 2006-02-13 07:46:20 +0000 (Mon, 13 Feb 2006)
New Revision: 2946
Removed:
plog/branches/lifetype-1.0.4/class/action/admin/adminhelpaction.class.php
Log:
Delete the admin/adminhelpaction.class.php that we never used.
Deleted: plog/branches/lifetype-1.0.4/class/action/admin/adminhelpaction.class.php
===================================================================
--- plog/branches/lifetype-1.0.4/class/action/admin/adminhelpaction.class.php 2006-02-13 07:42:21 UTC (rev 2945)
+++ plog/branches/lifetype-1.0.4/class/action/admin/adminhelpaction.class.php 2006-02-13 07:46:20 UTC (rev 2946)
@@ -1,58 +0,0 @@
-<?php
-
- include_once( PLOG_CLASS_PATH."class/action/admin/adminaction.class.php" );
- include_once( PLOG_CLASS_PATH."class/view/admin/adminsimpleerrorview.class.php" );
- include_once( PLOG_CLASS_PATH."class/view/admin/adminhelpview.class.php" );
- include_once( PLOG_CLASS_PATH."class/data/validator/stringvalidator.class.php" );
-
- /**
- * \ingroup Action
- * @private
- *
- * Sends a help text to the user.
- */
- class AdminHelpAction extends AdminAction
- {
-
- var $_helpId;
-
- /**
- * Constructor. If nothing else, it also has to call the constructor of the parent
- * class, BlogAction with the same parameters
- */
- function AdminHelpAction( $actionInfo, $request )
- {
- $this->AdminAction( $actionInfo, $request );
- }
-
- function validate()
- {
- $this->_helpId = trim($this->_request->getValue( "helpId" ));
-
- $val = new StringValidator();
- if( !$val->validate( $this->_helpId )) {
- $this->_view = new AdminSimpleErrorView();
- $this->_view->setValue( "error", "Incorrect identifier." );
- return false;
- }
-
- return true;
- }
-
- /**
- * Carries out the specified action
- */
- function perform()
- {
- $this->_view = new AdminHelpView( $this->_blogInfo );
- $blogSettings = $this->_blogInfo->getSettings();
- $locale =& Locales::getLocale( $blogSettings->getValue( "locale" ));
-
- $this->_view->setValue( "help", $locale->tr( $this->_helpId ));
- $this->setCommonData();
-
- // better to return true if everything fine
- return true;
- }
- }
-?>
More information about the pLog-svn
mailing list