1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-06 14:46:56 +02:00

Updated e107 Coding Standard (markdown)

Moc
2012-11-27 15:35:45 -08:00
parent 2929012bde
commit 1db5affc83

@@ -76,7 +76,8 @@ Always use e107's form handler for form elements in the front-end.
$frm = e107::getForm();
$frm->select($name,$value);
$frm->checkbox($name,$value,$checked);
$frm->selectbox($name,$array,$currentValue); // full SELECT tag with OPTIONs.
$frm->selectbox($name,$array,$currentValue); // full SELECT tag with OPTIONs.
$frm->admin_button($name, $value, $action, $label);
### Globals
Avoid the use of global variables, especially as an alternative to parameter passing. (We'll always need some globals - but the less there are, the smaller the chance of a clash). In v2.0 use the e107::getxxx syntax to get pointers to 'global' functions and objects like $sql, $tp
@@ -343,4 +344,4 @@ Note and use the class-based structure introduced in v2.0 - with this it should
Parameter standards (see eHelper::scParams() and eHelper::scDualParams() )
## Recommended Code Editors
We recommend [Aptana Studio](http://www.aptana.com/products/studio3) as an editor. We may release e107-specific code-assistance in future.
We recommend [Aptana Studio](http://www.aptana.com/products/studio3) as an editor. We may release e107-specific code-assistance in future.