PHP Class Devise\Pages\PageVersionsRepository

Datei anzeigen Open project: devisephp/cms

Public Methods

Method Description
__construct ( DvsPageVersion $PageVersion ) Create a new PageRepostiry instance.
getUnscheduledPageVersions ( ) : Collection Returns a list of all the unscheduled page versions in this system
getVersionsListForPage ( $page ) : array Returns a list of all the versions for a particular page

Protected Methods

Method Description
wrapPageDataAroundVersions ( Collection $versions ) : Collection Wraps these extra fields around page versions that are passed in

Method Details

__construct() public method

Create a new PageRepostiry instance.
public __construct ( DvsPageVersion $PageVersion )
$PageVersion DvsPageVersion

getUnscheduledPageVersions() public method

Returns a list of all the unscheduled page versions in this system
public getUnscheduledPageVersions ( ) : Collection
return Collection

getVersionsListForPage() public method

Returns a list of all the versions for a particular page
public getVersionsListForPage ( $page ) : array
return array

wrapPageDataAroundVersions() protected method

Wraps these extra fields around page versions that are passed in
protected wrapPageDataAroundVersions ( Collection $versions ) : Collection
$versions Collection
return Collection