PHP Class Devise\Calendar\PageVersionSource

..
Inheritance: implements Devise\Calendar\Source
Afficher le fichier Open project: devisephp/cms Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( DvsPageVersion $PageVersion, Framework $Framework ) Create a new PageVersionSource
fetchEvents ( string $start, string $end ) : array(StdClass) A Source must be able to fetch events. On this source we treat page versions as events with start and end dates.
updatePageVersion ( integer $id, string $start, string $end, boolean $published ) : StdClass This is here so that we can update a page version event

Méthodes protégées

Méthode Description
fetchEvent ( DvsPageVersion $pageVersion ) : StdClass Transforms a page version into a stdClass in the full calendar event format that is expected

Method Details

__construct() public méthode

Create a new PageVersionSource
public __construct ( DvsPageVersion $PageVersion, Framework $Framework )
$PageVersion DvsPageVersion
$Framework Devise\Support\Framework

fetchEvent() protected méthode

Transforms a page version into a stdClass in the full calendar event format that is expected
protected fetchEvent ( DvsPageVersion $pageVersion ) : StdClass
$pageVersion DvsPageVersion
Résultat StdClass

fetchEvents() public méthode

A Source must be able to fetch events. On this source we treat page versions as events with start and end dates.
public fetchEvents ( string $start, string $end ) : array(StdClass)
$start string
$end string
Résultat array(StdClass)

updatePageVersion() public méthode

This is here so that we can update a page version event
public updatePageVersion ( integer $id, string $start, string $end, boolean $published ) : StdClass
$id integer
$start string
$end string
$published boolean
Résultat StdClass