[Fusionforge-commits] r12466 - trunk/src/common/include

Olivier Berger olberger at fusionforge.org
Tue Mar 1 19:15:28 CET 2011


Author: olberger
Date: 2011-03-01 19:15:28 +0100 (Tue, 01 Mar 2011)
New Revision: 12466

Modified:
   trunk/src/common/include/RBACEngine.class.php
Log:
Some comments/docs

Modified: trunk/src/common/include/RBACEngine.class.php
===================================================================
--- trunk/src/common/include/RBACEngine.class.php	2011-03-01 18:15:19 UTC (rev 12465)
+++ trunk/src/common/include/RBACEngine.class.php	2011-03-01 18:15:28 UTC (rev 12466)
@@ -24,6 +24,10 @@
 
 require_once $gfcommon.'include/RBAC.php' ;
 
+/**
+ * TODO: Enter description here ...
+ *
+ */
 class RBACEngine extends Error implements PFO_RBACEngine {
 	private static $_instance ;
 	private $_cached_roles = array () ;
@@ -31,6 +35,7 @@
 	private $_cached_global_roles = NULL ;
 	private $_cached_public_roles = NULL ;
 
+	// singleton constructor
 	public static function getInstance() {
 		if (!isset(self::$_instance)) {
 			$c = __CLASS__;
@@ -427,6 +432,11 @@
 	return $engine->isActionAllowed($section, $reference, $action) ;
 }
 
+/**
+ * TODO: Enter description here ...
+ * @param unknown_type $section
+ * @param unknown_type $action
+ */
 function forge_check_global_perm ($section, $action = NULL) {
 	$engine = RBACEngine::getInstance() ;
 




More information about the Fusionforge-commits mailing list