[puntoengine] r61 committed - - Change HookTypes codes...

2 views
Skip to first unread message

punto...@googlecode.com

unread,
Jun 10, 2011, 9:07:22 AM6/10/11
to punto...@googlegroups.com
Revision: 61
Author: jba...@gmail.com
Date: Fri Jun 10 06:00:21 2011
Log: - Change HookTypes codes
- Added a Kernel base to load plugins


http://code.google.com/p/puntoengine/source/detail?r=61

Modified:
/trunk/puntoengine/core/Kernel.php
/trunk/puntoengine/core/plugin/Hook.php
/trunk/puntoengine/core/plugin/HookTypes.php

=======================================
--- /trunk/puntoengine/core/Kernel.php Thu Jun 9 03:02:23 2011
+++ /trunk/puntoengine/core/Kernel.php Fri Jun 10 06:00:21 2011
@@ -161,7 +161,19 @@
Kernel::$path = str_replace('/core','', dirname(__FILE__));
Kernel::$virtualPath = dirname($_SERVER['PHP_SELF']);
session_start();
+
+ Kernel::loadPlugins();
}//configure
+
+
+ /**
+ * Load all active plugins
+ * @since 0.3
+ * @todo implement with php_check_syntax to check include files are
correct
+ */
+ private static function loadPlugins() {
+
+ }


/**
=======================================
--- /trunk/puntoengine/core/plugin/Hook.php Tue Jun 7 08:14:44 2011
+++ /trunk/puntoengine/core/plugin/Hook.php Fri Jun 10 06:00:21 2011
@@ -16,7 +16,9 @@
* @subpackage plugin
* @author Juan Benavides Romero <juan.benav...@gmail.com>
* @since 0.3.0
+ * @todo Implement the class
*/
class Hook {
+
}//Hook
?>
=======================================
--- /trunk/puntoengine/core/plugin/HookTypes.php Thu Jun 9 03:02:23 2011
+++ /trunk/puntoengine/core/plugin/HookTypes.php Fri Jun 10 06:00:21 2011
@@ -22,34 +22,34 @@
* Hook launched in the last process of exception (when draw the error
page)
* @since 0.3
*/
- const PROCESS_EXCEPTION = 1;
+ const CALL_PROCESS_EXCEPTION = 'CALL_PROCESS_EXCEPTION';


/**
* Hook launched when redirect
* @since 0.3
*/
- const SEND_REDIRECT = 2;
+ const CALL_SEND_REDIRECT = 'CALL_SEND_REDIRECT';


/**
* Hook launched when not implemented the GET request and his is called
* @since 0.3
*/
- const DO_BASE_GET = 3;
+ const CALL_DO_BASE_GET = 'CALL_DO_BASE_GET';


/**
* Hook launched when not implemented the POST request and his is called
* @since 0.3
*/
- const DO_BASE_POST = 4;
+ const CALL_DO_BASE_POST = 'CALL_DO_BASE_POST';


/**
* Hook launched when not implemented the SERVICE request and his is
called
* @since 0.3
*/
- const DO_BASE_SERVICE = 5;
+ const CALL_DO_BASE_SERVICE = 'CALL_DO_BASE_SERVICE';
}//HookTypes
?>

Reply all
Reply to author
Forward
0 new messages