PHP Class Newscoop\ArticleDatetime

Author: mihaibalaceanu
Afficher le fichier Open project: sourcefabric/newscoop

Protected Properties

Свойство Type Description
$endDate
$endTime
$recurring
$spawns
$startDate
$startTime

Méthodes publiques

Méthode 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 méthode

clears spawns
public __clone ( )

__construct() public méthode

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 méthode

public getEndDate ( ) : DateTime
Résultat DateTime

getEndTime() public méthode

public getEndTime ( ) : DateTime
Résultat DateTime

getRecurring() public méthode

Get if date object is recurring
public getRecurring ( )

getSpawns() public méthode

Get other spawned objects from a contruct
public getSpawns ( )

getStartDate() public méthode

public getStartDate ( ) : DateTime
Résultat DateTime

getStartTime() public méthode

public getStartTime ( ) : DateTime
Résultat DateTime

setEndDate() public méthode

public setEndDate ( string $value )
$value string

setEndTime() public méthode

public setEndTime ( string $value )
$value string

setRecurring() public méthode

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

setStartDate() public méthode

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

setStartTime() public méthode

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