Galette API documentation
Gestionnaire d’Adhérents en Ligne Extrêmement Tarabiscoté mais Tellement Efficace
1.0.0
Galette\Helpers Namespace Reference

Functions

 setFields ()
 
 getFields ()
 
 __isset (string $name)
 
 getFieldLabel (string $field, string $entry='label')
 
 getFieldPropertyName (string $field)
 

Variables

trait EntityHelper
 
array $fields
 

Detailed Description

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/.

Function Documentation

◆ __isset()

Galette\Helpers\__isset ( string  $name)

Global isset method Required for twig to access properties via __get

Parameters
string$namename of the property we want to retrieve
Returns
bool

◆ getFieldLabel()

Galette\Helpers\getFieldLabel ( string  $field,
string  $entry = 'label' 
)

Get field label

Parameters
string$fieldField name
string$entryArray entry to use (defaults to "label")
Returns
string

◆ getFieldPropertyName()

Galette\Helpers\getFieldPropertyName ( string  $field)
protected

Get property name for given field

Parameters
string$fieldField
Returns
string

◆ getFields()

Galette\Helpers\getFields ( )

Get fields

Returns
array<string, array<string, string>>

◆ setFields()

Galette\Helpers\setFields ( )
abstractprotected

Set fields, must populate $this->fields

Returns
self

Variable Documentation

◆ EntityHelper

trait Galette::Helpers\EntityHelper
Initial value:
{
use DatesHelper

Entity helper trait

Author
Johan Cwiklinski johan.nosp@m.@x-t.nosp@m.nd.be