| 1 | <?php |
||
| 18 | class gallery extends Record |
||
|
|
|||
| 19 | { |
||
| 20 | /** @var integer Primary key */ |
||
| 21 | public $PhotoID; |
||
| 22 | |||
| 23 | /** @var integer Material identifier */ |
||
| 24 | public $MaterialID; |
||
| 25 | |||
| 26 | /** @var integer MaterialField identifier */ |
||
| 27 | public $materialFieldID; |
||
| 28 | |||
| 29 | /** @var integer Priority inside material relation */ |
||
| 30 | public $priority; |
||
| 31 | |||
| 32 | /** @var string Path for picture */ |
||
| 33 | public $Path; |
||
| 34 | |||
| 35 | /** @var string Name identifier */ |
||
| 36 | public $Src; |
||
| 37 | |||
| 38 | /** @var int Size picture */ |
||
| 39 | public $size; |
||
| 40 | |||
| 41 | /** @var int The field with upload date picture */ |
||
| 42 | public $Loaded; |
||
| 43 | |||
| 44 | /** @var string Description alt value for picture */ |
||
| 45 | public $Description; |
||
| 46 | |||
| 47 | /** @var string Additional field name */ |
||
| 48 | public $Name; |
||
| 49 | |||
| 50 | /** @var bool Internal existence flag */ |
||
| 51 | public $Active; |
||
| 52 | } |
||
| 53 | 1 | } |
|
| 55 |
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.