> For the complete documentation index, see [llms.txt](https://curriculumonline.gitbook.io/development/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://curriculumonline.gitbook.io/development/entwicklerhandbuch/namenskonventionen.md).

# Namenskonventionen

## PHP

## MySQL

## JavaScript

## Variablennamen

Bei curriculum wird **camelcase** für Bezeichnernamen verwendet (Variablen und Funktionen) Alle Variabelnnamen beginnen mit einem Buchstaben

```
elementColor = "bg-green";

function setColor(){
    doSomething();
}
```

## HTML / Smarty

### Allgemeines

#### HTML Elemente

Die Reihenfolge der HTML-Element-Attribute sollte wie im folgenden Beispiel angeordnet werden, damit Attribute im Code schneller gefunden werden:&#x20;

```
<div id="name_id" class="pull-right" style="width:50px;" onclick="doSomething();"></div>
```

### Tabs

#### nav-tabs

id von nav-tabs `nav_tab_[NAME]`

#### tab-pane

id von tab-pane `tab_[NAME]`

#### Beispiel

```
<div class="nav-tabs-custom">
    <ul class="nav nav-tabs">
        <li id="nav_tab_password" class="active"{/if}>
            <a href="#tab_password" data-toggle="tab">Passwort</a>
        </li>
        <li id="nav_tab_groups" class="active"{/if}>
            <a href="#tab_groups" data-toggle="tab">Gruppen</a>
        </li>
    </ul>
    <div class="tab-content">
        <div id="tab_password" class="tab-pane active row">
            //content
        </div>
        <div id="tab_groups" class="tab-pane active row">
            //content
        </div>
    </div>
</div>
```

## CSS
