DateColumn
in package
implements
TableDataColumn
Class representing a date table column.
Interfaces, Classes and Traits
- TableDataColumn
- Interface representing a table column.
Table of Contents
- TYPE = "date"
- Type name.
- $field : string
- Field name.
- $inputDateFormat : string
- Input date format.
- $outputDateFormat : string
- Output date format.
- $title : string
- Title.
- $type : string
- Type.
- create() : DateColumn
- Create instance.
- field() : string
- Return field.
- inputDateFormat() : string
- Return input date format.
- outputDateFormat() : string
- Return output date format.
- title() : string
- Return title.
- type() : string
- Return type.
- __construct() : mixed
- Constructor.
Constants
TYPE
Type name.
private
mixed
TYPE
= "date"
Properties
$field
Field name.
private
string
$field
$inputDateFormat
Input date format.
private
string
$inputDateFormat
$outputDateFormat
Output date format.
private
string
$outputDateFormat
$title
Title.
private
string
$title
$type
Type.
private
string
$type
Methods
create()
Create instance.
public
static create(string $title, string $field, string $inputDateFormat, string $outputDateFormat) : DateColumn
Parameters
- $title : string
-
Title.
- $field : string
-
Field name.
- $inputDateFormat : string
-
Input date format.
- $outputDateFormat : string
-
Output date format.
Return values
DateColumn —Instance.
field()
Return field.
public
field() : string
Tags
Return values
string —Field.
inputDateFormat()
Return input date format.
public
inputDateFormat() : string
Return values
string —Input date format.
outputDateFormat()
Return output date format.
public
outputDateFormat() : string
Return values
string —Output date format.
title()
Return title.
public
title() : string
Tags
Return values
string —Title.
type()
Return type.
public
type() : string
Tags
Return values
string —Type.
__construct()
Constructor.
private
__construct(string $title, string $field, string $inputDateFormat, string $outputDateFormat) : mixed
Parameters
- $title : string
-
Title.
- $field : string
-
Field name.
- $inputDateFormat : string
-
Input date format.
- $outputDateFormat : string
-
Output date format.