User Tools

Site Tools


Sidebar

vortex:apidoc:intfield

IntField

IntField

Filename : /classes/table/fields/intfield.php
Extends : Field

Description

Field containing a int data type

Fields

Methods

getPlaintext( $save )

Definition : public function getPlaintext( $save = false )

Returns : String

Description
Get the plaintext of the int field, if the field is createdby or lastchangeby return the name of the user

Parameters

$save

Type : boolean
Default value : false

Description
Whether this method is called during the save process

getValue( $save )

Definition : public function getValue( $save = false )

Returns : int - value of the field

Description
Get the value of the field, default to numeric 0

Parameters

$save

Type : boolean
Default value : false

Description
Whether this method is called during the save process

setValue( $value, $init )

Definition : public function setValue( $value, $save = false )

Returns : int - the value set

Description
Set the given value to this field if it is numeric

Parameters

$init

Type : boolean
Default value : false

Description
Whether this method is called during the initialization process

$value

Type : String
Default value :

Description
Value to set, will not be set if not numeric

vortex/apidoc/intfield.txt · Last modified: 2019/06/28 07:08 by hubbe