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

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 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

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]

Голосования
вы готовы обмениваться ссылками?
не нравятся
не нравятся
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
Перейти в ветку