Авторизация
 Регистрация   Войти   Забыли пароль? 

Classes and functions. Class Declaration

:: English Support Forums :: PHP-Fusion Coding Coding Style :: Classes and functions. Class Declaration
Admin  Распечатать сообщение

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in E:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\mail_bbcode_include.php on line 20

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in E:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\mail_bbcode_include.php on line 21

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in E:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\search_bbcode_include.php on line 39

Classes and functions. Class Declaration
PHP-Fusion Coding Style PHP-Fusion version 7.02.00



Classes must be named according to PHP-Fusion's naming convenEons. The brace should always be
wriLen on the same line as the class name. All code in a class must be indented with one tab and
only one class is permiLed in each PHP .le.
Placing addiEonal code in class .les is permiLed but discouraged. In such .les, two blank lines
must separate the class from any addiEonal PHP code in the class .le, the only excepEon is
addiEonal classes extending the main class.
The following is an example of an acceptable class declaraEon:

Загрузить источник  PHP
  1. <?php
  2.  class SampleClass {
  3.   // all contents of class
  4.   // must be indented by one tab
  5.  }
  6.  
  7. ?>


Classes that extend other classes or which implement interfaces should declare their
dependencies on the same line when possible.

Загрузить источник  PHP
  1. <?php
  2.  class SampleClass extends FooAbstract {
  3.  }
  4. ?>

  Опубликовано 04.06.2013 20:57:22 
 Перейти на форум:   
HTML-code and BB-code for blogs and forums

<a href="https://php-fusion.vveb.ws/forum/viewthread.php?thread_id=153">Classes and functions. Class Declaration : Classes and functions. Class Declaration</a>


[url=https://php-fusion.vveb.ws/forum/viewthread.php?thread_id=153]Classes and functions. Class Declaration : Classes and functions. Class Declaration[/url]

Голосования
Опрос: Нравится ли Вам PHP-Fusion?
5) очень нравится
5) очень нравится
100% = [1 Голос]
4) нравится
4) нравится
0% = [0 Голосов]
3) средне
3) средне
0% = [0 Голосов]
2) не нравится
2) не нравится
0% = [0 Голосов]
1) полный отстой
1) полный отстой
0% = [0 Голосов]
Всего голосов : 1
Перейти в ветку