PHP Class Newscoop\ArticleDatetime

Author: mihaibalaceanu
显示文件 Open project: sourcefabric/newscoop

Protected Properties

Property Type Description
$endDate
$endTime
$recurring
$spawns
$startDate
$startTime

Public Methods

Method Description
__clone ( ) clears spawns
__construct ( mixed $format, string $recurring = null )
getEndDate ( ) : DateTime
getEndTime ( ) : DateTime
getRecurring ( ) Get if date object is recurring
getSpawns ( ) Get other spawned objects from a contruct
getStartDate ( ) : DateTime
getStartTime ( ) : DateTime
setEndDate ( string $value )
setEndTime ( string $value )
setRecurring ( string $value ) Set recurring flag
setStartDate ( string $value )
setStartTime ( string $value )

Method Details

__clone() public method

clears spawns
public __clone ( )

__construct() public method

public __construct ( mixed $format, string $recurring = null )
$format mixed array of start_date, end_date, etc. keys array with 1 element: start_date => end_date strings - Date and Time formats: http://php.net/manual/en/datetime.formats.php string formatted like above and start separated by end with a - (dash) padded with spaces also in case of array you can add recurring => [daily|weekly|etc.]
$recurring string

getEndDate() public method

public getEndDate ( ) : DateTime
return DateTime

getEndTime() public method

public getEndTime ( ) : DateTime
return DateTime

getRecurring() public method

Get if date object is recurring
public getRecurring ( )

getSpawns() public method

Get other spawned objects from a contruct
public getSpawns ( )

getStartDate() public method

public getStartDate ( ) : DateTime
return DateTime

getStartTime() public method

public getStartTime ( ) : DateTime
return DateTime

setEndDate() public method

public setEndDate ( string $value )
$value string

setEndTime() public method

public setEndTime ( string $value )
$value string

setRecurring() public method

Set recurring flag
public setRecurring ( string $value )
$value string daily|weekly|monthly|yearly

setStartDate() public method

public setStartDate ( string $value )
$value string date format

setStartTime() public method

public setStartTime ( string $value )
$value string

Property Details

$endDate protected_oe property

protected $endDate

$endTime protected_oe property

protected $endTime

$recurring protected_oe property

protected $recurring

$spawns protected_oe property

protected $spawns

$startDate protected_oe property

protected $startDate

$startTime protected_oe property

protected $startTime