mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-27 20:10:18 +02:00
build
code_sniffer
git-tools
phpBB
tests
bbcode
cache
class_loader
includes
dir
dir2
class_name.php
dir.php
class_loader_test.php
compress
config
controller
cron
datetime
dbal
di
download
event
extension
fixtures
functional
functions
functions_acp
group_positions
lock
mock
network
privmsgs
profile
random
regex
request
search
security
session
template
test_framework
text_processing
tmp
upload
user
utf
wrapper
RUNNING_TESTS.txt
bootstrap.php
error_collector_test.php
travis
.gitignore
.travis.yml
README.md
composer.phar
phpunit.xml.all
phpunit.xml.dist
phpunit.xml.functional
phpBB class name lookups follow these rules: - All classes are prefixed with phpbb_ - All classes reside in includes/ or a subdirectory thereof - Directories must not contain underscores - The class name is separated into parts by underscores, the parts are checked from first to last, until one is found which is not a directory, all remaining parts make up the file name. If no parts are left, the last directory name is used. Examples: directory structure: includes/ class_name.php dir/ class_name.php dir.php subdir/ class_name.php lookups: 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 Optionally the class can be supplied with a cache instance, either in the constructor or via set_cache() at a later time. This allows for the lookups to be cached, so the directories do not have to be traveresed on every request. This makes it necessary for the cache and its dependency to continue to be loaded the old way - without autoloading. The code will not be changed to use autoloading, but it will rather only be used for new classes where applicable. PHPBB3-9682
7 lines
35 B
PHP
7 lines
35 B
PHP
<?php
|
|
|
|
class phpbb_class_name
|
|
{
|
|
}
|
|
|