Galette API documentation
Gestionnaire d’Adhérents en Ligne Extrêmement Tarabiscoté mais Tellement Efficace
1.0.0
Galette\DynamicFields\Choice Class Reference
Inheritance diagram for Galette\DynamicFields\Choice:
Collaboration diagram for Galette\DynamicFields\Choice:

Public Member Functions

 __construct (Db $zdb, int $id=null)
 
 getType ()
 
- Public Member Functions inherited from Galette\DynamicFields\DynamicField
 __construct (Db $zdb, mixed $args=null)
 
 loadFromRS (ArrayObject $rs, bool $values=true)
 
 getTypeName ()
 
 hasData ()
 
 hasWidth ()
 
 hasHeight ()
 
 hasMinSize ()
 
 hasSize ()
 
 isMultiValued ()
 
 hasFixedValues ()
 
 hasPermissions ()
 
 getId ()
 
 isRequired ()
 
 getWidthInForms ()
 
 getWidth ()
 
 getHeight ()
 
 isRepeatable ()
 
 getRepeat ()
 
 getMinSize ()
 
 getSize ()
 
 getIndex ()
 
 getInformation ()
 
 hasInformationAbove ()
 
 getForm ()
 
 getValues (bool $imploded=false)
 
 check (array $values)
 
 store (array $values)
 
 isDuplicate ()
 
 move (string $action)
 
 remove ()
 
 getErrors ()
 
 getWarnings ()
 

Additional Inherited Members

- Static Public Member Functions inherited from Galette\DynamicFields\DynamicField
static getFieldType (Db $zdb, int $t, int $id=null)
 
static getFixedValuesTableName (int $id, bool $prefixed=false)
 
static getFormsNames ()
 
static getFormTitle (string $form_name)
 
static getFieldsTypesNames ()
 
- Public Attributes inherited from Galette\DynamicFields\DynamicField
const TABLE = 'field_types'
 
const PK = 'field_id'
 
const SEPARATOR = 0
 
const TEXT = 1
 
const LINE = 2
 
const CHOICE = 3
 
const DATE = 4
 
const BOOLEAN = 5
 
const FILE = 6
 
const MOVE_UP = 'up'
 
const MOVE_DOWN = 'down'
 
const DEFAULT_MAX_FILE_SIZE = 1024
 
const VALUES_FIELD_LENGTH = 100
 
- Protected Member Functions inherited from Galette\DynamicFields\DynamicField
 getNewIndex ()
 
- Protected Attributes inherited from Galette\DynamicFields\DynamicField
bool $has_data = false
 
bool $has_width = false
 
bool $has_height = false
 
bool $has_size = false
 
bool $has_min_size = false
 
bool $multi_valued = false
 
bool $fixed_values = false
 
bool $has_permissions = true
 
int $id = null
 
int $index = null
 
bool $required = false
 
int $width_in_forms = 1
 
bool $information_above = false
 
int $width = null
 
int $height = null
 
int $repeat = null
 
int $min_size = null
 
int $size = null
 
int $old_size = null
 
string array false $values = false
 
string $form
 
string $information = null
 
string $name = null
 
string $old_name = null
 
array $errors = []
 
Db $zdb
 

Detailed Description

Choice dynamic field

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

Constructor & Destructor Documentation

◆ __construct()

Galette\DynamicFields\Choice::__construct ( Db  $zdb,
int  $id = null 
)

Default constructor

Parameters
Db$zdbDatabase instance
?int$id Optional field id to load data

Member Function Documentation

◆ getType()

Galette\DynamicFields\Choice::getType ( )

Get field type

Returns
integer

Reimplemented from Galette\DynamicFields\DynamicField.


The documentation for this class was generated from the following file: