Class DateItem
Date item object
- Model
- AppModel
- BEAppModel
- DateItem
Methods summary
public
string
|
|
protected
array
|
|
public
integer|null
|
|
public
mixed
|
#
prepareDate( string $column, mixed $date )
Prepares one or more dates in the correct format for the underlying database structure (either |
private
array
|
|
public
boolean
|
#
beforeValidate( )
Runs actual validation rules. If supplied values aren't valid, they are silently removed. |
public
array
|
|
public
array
|
|
protected static
|
#
addToCalendar( array & $calendar, array $dateItem )
Add a DateItem to the calendar with respect of time order. |
public
array,
|
#
loadDateItemsCalendar( string $startDay, string $endDay )
Load calendar date items in the time window specified. Returns array containing a list of object IDs with matching date items, and a list of DateItems for each day. |
public
array
|
#
apiTransformer( array $options = array() )
Return an array of column types to transform (cast) Used to build consistent REST APIs |
Methods inherited from BEAppModel
am()
,
buildQueryStatement()
,
checkDate()
,
checkDuration()
,
checkFloat()
,
checkNumber()
,
containLevel()
,
email()
,
fieldsString()
,
findObjects()
,
findObjectsAfterFilter()
,
findObjectsClauses()
,
findObjectsCount()
,
getBindingsLevel()
,
getDefaultDateFormat()
,
getDriver()
,
getEndQuote()
,
getLimitClausole()
,
getStartQuote()
,
setBindingsLevel()
,
setupDbParams()
,
toolbar()
Properties summary
public
integer
|
$recursive
Recursive find depth. |
#
0
|
public
array
|
$validate
Validation rules. |
#
array()
|