[pLog-svn] r6565 - plog/branches/lifetype-1.2/class/controller
mark at devel.lifetype.net
mark at devel.lifetype.net
Wed Jun 18 02:50:59 EDT 2008
Author: mark
Date: 2008-06-18 02:50:59 -0400 (Wed, 18 Jun 2008)
New Revision: 6565
Modified:
plog/branches/lifetype-1.2/class/controller/controller.class.php
Log:
Add checkActionExist() to check the actionName in global actionMaps or not.
Modified: plog/branches/lifetype-1.2/class/controller/controller.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/controller/controller.class.php 2008-06-18 06:18:07 UTC (rev 6564)
+++ plog/branches/lifetype-1.2/class/controller/controller.class.php 2008-06-18 06:50:59 UTC (rev 6565)
@@ -206,6 +206,22 @@
}
/**
+ * check action exist in controller map or not
+ *
+ * @param actionName Name of the action
+ * @return true if action exist
+ * @static
+ */
+ function checkActionExist( $actionName )
+ {
+ global $_plogController_actionMap;
+ if( !array_key_exists( $actionName, $_plogController_actionMap ) )
+ return true;
+ else
+ false;
+ }
+
+ /**
* Add function info here
*
* @private
More information about the pLog-svn
mailing list