Stud.IP  6.0
DataFieldDateEntry Class Reference
Inheritance diagram for DataFieldDateEntry:
DataFieldEntry

Public Member Functions

 setValueFromSubmit ($value)
 
 getDisplayValue ($entries=true)
 
 getHTML ($name='', $variables=[])
 
 isValid ()
 
- Public Member Functions inherited from DataFieldEntry
 __construct (DataField $datafield=null, $rangeID='', $value=null)
 
 store ()
 
 isRequired ()
 
 getDescription ()
 
 getType ()
 
 getDisplayValue ($entities=true)
 
 getValue ()
 
 getName ()
 
 getId ()
 
 getHTML ($name='', $variables=[])
 
 setValue ($value)
 
 setValueFromSubmit ($submitted_value)
 
 setRangeID ($range_id)
 
 setSecondRangeID ($sec_range_id)
 
 setContentLanguage ($language)
 
 isEmpty ()
 
 isValid ()
 
 numberOfHTMLFields ()
 
 getRangeID ()
 
 getSecondRangeID ()
 
 isVisible ($perm=null, $test_ownership=true)
 
 isEditable ($perms=null)
 
 getPermsDescription ()
 

Protected Attributes

 $template = 'date.php'
 
- Protected Attributes inherited from DataFieldEntry
 $language = ''
 
 $template = null
 

Additional Inherited Members

- Static Public Member Functions inherited from DataFieldEntry
static getSupportedTypes ($object_type=null)
 
static createDataFieldEntry (DataField $datafield, $rangeID='', $value=null)
 
static getDataFieldEntries ($range_id, $object_type='', $object_class_hint='')
 
static removeAll ($range_id)
 
- Data Fields inherited from DataFieldEntry
 $value
 
 $model
 
 $rangeID
 
- Protected Member Functions inherited from DataFieldEntry
 prettyPrintViewPerms ()
 
- Static Protected Attributes inherited from DataFieldEntry
static $supported_types
 

Detailed Description

Member Function Documentation

◆ getDisplayValue()

getDisplayValue (   $entries = true)

Returns the display/rendered value of this datafield

Parameters
bool$entitiesShould html entities be encoded (defaults to true)
Returns
String containg the rendered value

◆ getHTML()

getHTML (   $name = '',
  $variables = [] 
)

Returns the according input elements as html for this datafield

Parameters
String$nameName prefix of the associated input
Array$variablesAdditional variables
Returns
String containing the required html

◆ isValid()

isValid ( )

Returns whether the datafield contents are valid

Returns
boolean indicating whether the datafield contents are valid

◆ setValueFromSubmit()

setValueFromSubmit (   $value)

Sets the value from a post request

Parameters
mixed$submitted_valueThe value from request

Field Documentation

◆ $template

$template = 'date.php'
protected

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