PHP Class Devise\Calendar\PageVersionSource

..
Inheritance: implements Devise\Calendar\Source
Datei anzeigen Open project: devisephp/cms Class Usage Examples

Public Methods

Method 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

Protected Methods

Method 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 method

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

fetchEvent() protected method

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

fetchEvents() public method

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
return array(StdClass)

updatePageVersion() public method

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
return StdClass