symphonycms /
symphony-2
| 1 | <?php |
||
| 2 | /** |
||
| 3 | * @package content |
||
| 4 | */ |
||
| 5 | /** |
||
| 6 | * The AjaxHandle page is used for generating handles on the fly |
||
| 7 | * that are used in Symphony's javascript |
||
| 8 | */ |
||
| 9 | class contentAjaxHandle extends JSONPage |
||
|
0 ignored issues
–
show
|
|||
| 10 | { |
||
| 11 | public function view() |
||
| 12 | { |
||
| 13 | $string = $_GET['string']; |
||
| 14 | $this->_Result['handle'] = Lang::createHandle($string, 255, '-', true); |
||
| 15 | } |
||
| 16 | } |
||
| 17 |
Classes in PHP are usually named in CamelCase.
In camelCase names are written without any punctuation, the start of each new word being marked by a capital letter. The whole name starts with a capital letter as well.
Thus the name database provider becomes
DatabaseProvider.