Functions | |
setFields () | |
getFields () | |
__isset (string $name) | |
getFieldLabel (string $field, string $entry='label') | |
getFieldPropertyName (string $field) | |
Variables | |
trait | EntityHelper |
array | $fields |
Copyright © 2003-2024 The Galette Team
This file is part of Galette (https://galette.eu).
Galette is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
Galette is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with Galette. If not, see http://www.gnu.org/licenses/.
Galette\Helpers\__isset | ( | string | $name | ) |
Global isset method Required for twig to access properties via __get
string | $name | name of the property we want to retrieve |
Galette\Helpers\getFieldLabel | ( | string | $field, |
string | $entry = 'label' |
||
) |
Get field label
string | $field | Field name |
string | $entry | Array entry to use (defaults to "label") |
|
protected |
Get property name for given field
string | $field | Field |
Galette\Helpers\getFields | ( | ) |
Get fields
|
abstractprotected |
Set fields, must populate $this->fields
trait Galette::Helpers\EntityHelper |
Entity helper trait