[xoops-cvslog 6375] CVS update: xoops2jp/html/core

Back to archive index

Minahito minah****@users*****
2007年 4月 26日 (木) 13:26:22 JST


Index: xoops2jp/html/core/XCube_Delegate.class.php
diff -u xoops2jp/html/core/XCube_Delegate.class.php:1.1.2.5 xoops2jp/html/core/XCube_Delegate.class.php:1.1.2.5.2.1
--- xoops2jp/html/core/XCube_Delegate.class.php:1.1.2.5	Wed Jan 17 17:22:48 2007
+++ xoops2jp/html/core/XCube_Delegate.class.php	Thu Apr 26 13:26:22 2007
@@ -2,7 +2,7 @@
 /**
  *
  * @package XCube
- * @version $Id: XCube_Delegate.class.php,v 1.1.2.5 2007/01/17 08:22:48 minahito Exp $
+ * @version $Id: XCube_Delegate.class.php,v 1.1.2.5.2.1 2007/04/26 04:26:22 minahito Exp $
  * @copyright Copyright 2005, 2006 XOOPS Cube Project <http://xoopscube.org/>
  * @license http://xoopscube.sourceforge.net/bsd_licenses.txt Modified BSD license
  *
@@ -26,9 +26,25 @@
 	}
 }
 
-define("XCUBE_DELEGATE_PRIORITY_FIRST", 0);
-define("XCUBE_DELEGATE_PRIORITY_NORMAL", 50);
-define("XCUBE_DELEGATE_PRIORITY_FINAL", 100);
+//
+// Constants for delegate priority.
+// But, developers should use {first,normal,firnal} basically.
+//
+
+define("XCUBE_DELEGATE_PRIORITY_1", 10);
+define("XCUBE_DELEGATE_PRIORITY_2", 20);
+define("XCUBE_DELEGATE_PRIORITY_3", 30);
+define("XCUBE_DELEGATE_PRIORITY_4", 40);
+define("XCUBE_DELEGATE_PRIORITY_5", 50);
+define("XCUBE_DELEGATE_PRIORITY_6", 60);
+define("XCUBE_DELEGATE_PRIORITY_7", 70);
+define("XCUBE_DELEGATE_PRIORITY_8", 80);
+define("XCUBE_DELEGATE_PRIORITY_9", 90);
+define("XCUBE_DELEGATE_PRIORITY_10", 100);
+
+define("XCUBE_DELEGATE_PRIORITY_FIRST", XCUBE_DELEGATE_PRIORITY_1);
+define("XCUBE_DELEGATE_PRIORITY_NORMAL", XCUBE_DELEGATE_PRIORITY_5);
+define("XCUBE_DELEGATE_PRIORITY_FINAL", XCUBE_DELEGATE_PRIORITY_10);
 
 /**
  * This is simple mechanism for common delegation in XCube.


xoops-cvslog メーリングリストの案内
Back to archive index