From: <za...@us...> - 2003-08-25 22:58:10
|
Update of /cvsroot/tikiwiki/tiki/tests/core In directory sc8-pr-cvs1:/tmp/cvs-serv22804 Modified Files: core.php extensions.php Log Message: Dont rememeber whats changed :) Index: core.php =================================================================== RCS file: /cvsroot/tikiwiki/tiki/tests/core/core.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- core.php 24 Aug 2003 00:42:17 -0000 1.2 +++ core.php 25 Aug 2003 22:57:43 -0000 1.3 @@ -13,7 +13,7 @@ require_once('acl_tree.php'); // Some defines -define('TIKI_HARDCODED_CONFIG_FILE', 'tiki-hardcoded-config.php'); +define('TIKI_HARDCODED_CONFIG_FILE', dirname(__FILE__) . '/tiki-hardcoded-config.php'); /** * \brief The main class of Tiki core @@ -42,7 +42,7 @@ function initialize() { // Get hardcoded globals before exec init scripts - $tiki_conf = dirname(__FILE__) . '/' . TIKI_HARDCODED_CONFIG_FILE; + $tiki_conf = TIKI_HARDCODED_CONFIG_FILE; if (file_exists($tiki_conf)) require_once($tiki_conf); else Index: extensions.php =================================================================== RCS file: /cvsroot/tikiwiki/tiki/tests/core/extensions.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- extensions.php 22 Aug 2003 19:04:40 -0000 1.1 +++ extensions.php 25 Aug 2003 22:57:43 -0000 1.2 @@ -7,6 +7,8 @@ * */ +define('TIKI_EXT_BASE_DIR', dirname(__FILE__) . '/ext'); + /** * \brief Extensions Management Core Subsystem * @@ -24,12 +26,13 @@ * \brief List of enabled extensions * List available for user extensions */ - function enabled_extensions($user) + function enabled_extensions($objid, $objtype) { } /** * \brief Rescan extensions dir * ... and update DB table. + * */ function search_extensions() { @@ -53,6 +56,9 @@ * * It is not enough to copy extension files to corresponding dir * it should be installed... + * + * \param $extension string extension name to check + * \return true if installed, else false */ function is_installed($extension) { @@ -61,9 +67,39 @@ * \brief Return true if extension installed and enabled for current user * */ - function is_enabled($extension, $user) + function is_enabled($extension, $objid, $objtype) + { + } + + /* + * API for extension installators + */ + + /** + * \brief + */ + function register_extension() + { + } + /** + * \brief + */ + function unregister_extension() + { + } + /** + * \brief + */ + function register_page() + { + } + /** + * \brief + */ + function unregister_page() { } + } ?> |