concrete/controllers/single_page/dashboard/reports/page_changes.php
private function getVersionList()
    {
        /* @var \Concrete\Core\Form\Service\Widget\DateTime $dt */
        $dt = $this->app->make('helper/form/date_time');

        $startDate = $dt->translate('startDate', null, true);
        $endDate = $dt->translate('endDate', null, true);

        $versionList = new GlobalVersionList();
        $versionList->sortByDateApprovedDesc();

        if ($startDate !== null) {
            $versionList->filterByApprovedAfter($startDate);
        }

        if ($endDate !== null) {
            $versionList->filterByApprovedBefore($endDate);
        }

        return $versionList;
    }
private function getVersionList()
    {
        /* @var \Concrete\Core\Form\Service\Widget\DateTime $dt */
        $dt = $this->app->make('helper/form/date_time');

        $startDate = $dt->translate('startDate', null, true);
        $endDate = $dt->translate('endDate', null, true);

        $versionList = new GlobalVersionList();
        $versionList->sortByDateApprovedDesc();

        if ($startDate !== null) {
            $versionList->filterByApprovedAfter($startDate);
        }

        if ($endDate !== null) {
            $versionList->filterByApprovedBefore($endDate);
        }

        return $versionList;
    }
private function getVersionList ( ) { /* @var \Concrete\Core\Form\Service\Widget\DateTime $dt */ $ dt = $ this -> app -> make ( 'helper/form/date_time' ) ; $ startDate = $ dt -> translate ( 'startDate' , null , true ) ; $ endDate = $ dt -> translate ( 'endDate' , null , true ) ; $ versionList = new GlobalVersionList ( ) ; $ versionList -> sortByDateApprovedDesc ( ) ; if ( $ startDate !== null ) { $ versionList -> filterByApprovedAfter ( $ startDate ) ; } if ( $ endDate !== null ) { $ versionList -> filterByApprovedBefore ( $ endDate ) ; } return $ versionList ; }
Get the item list object.

@return \Concrete\Core\Page\Collection\Version\GlobalVersionList
Get the item list object .