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

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 F:\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 F:\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 F:\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]

Голосования
вы готовы обмениваться ссылками?
не нравятся
не нравятся
67% = [2 Голосов]
Nwidia
Nwidia
0% = [0 Голосов]
стоит!
стоит!
67% = [2 Голосов]
Нет
Нет
0% = [0 Голосов]
Нет
Нет
0% = [0 Голосов]
10
10
67% = [2 Голосов]
Не нравится
Не нравится
67% = [2 Голосов]
Нет!
Нет!
33% = [1 Голос]
НЕТ
НЕТ
33% = [1 Голос]
НЕБЕСПЛАТНЫЕ СПОСОБЫ
НЕБЕСПЛАТНЫЕ СПОСОБЫ
33% = [1 Голос]
Постепенно наращивая
Постепенно наращивая
0% = [0 Голосов]
Нет уж, проводите!!!!!!
Нет уж, проводите!!!!!!
0% = [0 Голосов]
Нет
Нет
0% = [0 Голосов]
Нет
Нет
33% = [1 Голос]
не надо
не надо
33% = [1 Голос]
Всего голосов : 3
Перейти в ветку