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

Functions

:: English Support Forums :: PHP-Fusion Coding Coding Style :: Functions
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

Functions

PHP-Fusion Coding Style PHP-Fusion version 7.02.00



Function names may only contain alphanumeric characters. Underscores are not permiLed.
Numbers are permiLed in funcEon names but are discouraged in most cases.
FuncEon names must always start with a lowercase leLer. When a funcEon name consists of more
than one word, the .rst leLer of each new word must be capitalised. This is commonly called
"camelCase" formaRng.
Verbosity is generally encouraged. FuncEon names should be as verbose as is pracEcal to fully
describe their purpose and behaviour.
These are examples of acceptable names for functions:

• .lterInput()
• getElementById()
• widgetFactory()


For object oriented programming, accessors for instance or staEc variables should always be
pre.xed with "is ", "get" or "set". In implemenEng design paLerns, such as the singleton or factory
paLerns, the name of the method should contain the paLern name where pracEcal to more
thoroughly describe behaviour.
For methods on objects that are declared with the "private" or "protected" modi.er, the .rst
character of the method name must be an underscore. This is the only acceptable applicaEon of an
underscore in a method name. Methods declared "public" should never contain an underscore.
FuncEons in the global scope (a.k.a ".oaEng funcEons") are permiLed but discouraged in most
cases. Consider wrapping these funcEons in a staEc class.
  Опубликовано 04.06.2013 21:15:12 
 Перейти на форум:   
HTML-code and BB-code for blogs and forums

<a href="https://php-fusion.vveb.ws/forum/viewthread.php?thread_id=161">Functions : Functions</a>


[url=https://php-fusion.vveb.ws/forum/viewthread.php?thread_id=161]Functions : Functions[/url]

Голосования
Что лучше
нравятся
нравятся
100% = [1 Голос]
AMD
AMD
100% = [1 Голос]
не стоит!
не стоит!
100% = [1 Голос]
Да
Да
100% = [1 Голос]
Да
Да
0% = [0 Голосов]
5
5
100% = [1 Голос]
Нравится
Нравится
100% = [1 Голос]
Да!
Да!
200% = [2 Голосов]
ДА
ДА
300% = [3 Голосов]
"ХАЛЯВНЫЕ" СПОСОБЫ ПОСТАВИТЬ ССЫЛКУ
"ХАЛЯВНЫЕ" СПОСОБЫ ПОСТАВИТЬ ССЫЛКУ
100% = [1 Голос]
Сразу много
Сразу много
100% = [1 Голос]
Можно
Можно
100% = [1 Голос]
Да
Да
300% = [3 Голосов]
Да
Да
200% = [2 Голосов]
надо
надо
0% = [0 Голосов]
Всего голосов : 1
Перейти в ветку