From 244d783865a881d68c906e32352476ab69e1cf4e Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 18 Mar 2014 09:54:14 +0100 Subject: [PATCH] [ticket/12286] Classes must use the name space PHPBB3-12286 --- phpBB/docs/coding-guidelines.html | 37 ++++++++++++------------------- 1 file changed, 14 insertions(+), 23 deletions(-) diff --git a/phpBB/docs/coding-guidelines.html b/phpBB/docs/coding-guidelines.html index 45bdb5d422..d220bfa740 100644 --- a/phpBB/docs/coding-guidelines.html +++ b/phpBB/docs/coding-guidelines.html @@ -190,19 +190,12 @@ class ... @@ -249,7 +242,7 @@ PHPBB_QA (Set board to QA-Mode, which means the updater also c

If the PHPBB_USE_BOARD_URL_PATH constant is set to true, phpBB uses generate_board_url() (this will return the boards url with the script path included) on all instances where web-accessible images are loaded. The exact locations are:

@@ -332,28 +325,26 @@ for ($i = 0; $i < $outer_size; $i++)

Apart from following the rules for function names, all classes should meet the following conditions:

So given the following example directory structure you would result in the below listed lookups

-includes/
+phpbb/
   class_name.php
   dir/
     class_name.php
-    dir.php
       subdir/
         class_name.php
 	
-phpbb_class_name            - includes/class_name.php
-phpbb_dir_class_name        - includes/dir/class_name.php
-phpbb_dir                   - includes/dir/dir.php
-phpbb_dir_subdir_class_name - includes/dir/subdir/class_name.php
+\phpbb\class_name            - phpbb/class_name.php
+\phpbb\dir\class_name        - phpbb/dir/class_name.php
+\phpbb\dir\subdir\class_name - phpbb/dir/subdir/class_name.php