Dotclear 2.24
Loading...
Searching...
No Matches
rsExtDates Class Reference

Dotclear dates record helpers. More...

Static Public Member Functions

static ts (dcRecord $rs)
 
static year (dcRecord $rs)
 
static month (dcRecord $rs)
 
static day (dcRecord $rs)
 
static url (dcRecord $rs)
 
static yearHeader (dcRecord $rs)
 
static yearFooter (dcRecord $rs)
 

Detailed Description

Dotclear dates record helpers.

This class adds new methods to database dates results. You can call them on every record comming from dcBlog::getDates.

Warning
You should not give the first argument (usualy $rs) of every described function.

Member Function Documentation

◆ ts()

static ts ( dcRecord  $rs)
static

Convert date to timestamp

Parameters
dcRecord$rsInvisible parameter
Returns
integer

◆ year()

static year ( dcRecord  $rs)
static

Get date year

Parameters
dcRecord$rsInvisible parameter
Returns
string

◆ month()

static month ( dcRecord  $rs)
static

Get date month

Parameters
dcRecord$rsInvisible parameter
Returns
string

◆ day()

static day ( dcRecord  $rs)
static

Get date day

Parameters
dcRecord$rsInvisible parameter
Returns
string

◆ url()

static url ( dcRecord  $rs)
static

Returns date month archive full URL.

Parameters
dcRecord$rsInvisible parameter
Returns
string

References dcCore\app().

◆ yearHeader()

static yearHeader ( dcRecord  $rs)
static

Returns whether date is the first of year.

Parameters
dcRecord$rsInvisible parameter
Returns
bool

References dcRecord\isStart(), dcRecord\moveNext(), and dcRecord\movePrev().

◆ yearFooter()

static yearFooter ( dcRecord  $rs)
static

Returns whether date is the last of year.

Parameters
dcRecord$rsInvisible parameter
Returns
bool

References dcRecord\isEnd(), dcRecord\moveNext(), and dcRecord\movePrev().


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