Source of file CMSWorkflowThreeStepFilters.php
Size: 1,288 Bytes - Last Modified: 2021-12-23T10:28:49+00:00
/var/www/docs.ssmods.com/process/src/code/ThreeStep/CMSWorkflowThreeStepFilters.php
1234567891011121314151617181920212223242526272829303132333435363738394041424344 | <?php /** * Filter the SiteTree by pages awaiting approval * * @package cmsworkflow * @subpackage ThreeStep */ class CMSWorkflowThreeStepFilters_PagesAwaitingApproval extends CMSSiteTreeFilter { public static function title() { return _t('CMSWorkflowThreeStepFilters_PagesAwaitingApproval.TITLE', "Pages awaiting approval"); } public function pagesIncluded() { return DB::query('SELECT DISTINCT "SiteTree"."ParentID", "SiteTree"."ID" FROM "SiteTree" INNER JOIN "WorkflowRequest" ON "WorkflowRequest"."PageID" = "SiteTree"."ID" WHERE "WorkflowRequest"."Status" = \'AwaitingApproval\''); } } /** * Fitler the SiteTree by pages awaiting publishing * * @package cmsworkflow * @subpackage ThreeStep */ class CMSWorkflowThreeStepFilters_PagesAwaitingPublishing extends CMSSiteTreeFilter { public static function title() { return _t('CMSWorkflowThreeStepFilters_PagesAwaitingPublishing.TITLE', "Pages awaiting publishing"); } public function pagesIncluded() { return DB::query('SELECT DISTINCT "SiteTree"."ParentID", "SiteTree"."ID" FROM "SiteTree" INNER JOIN "WorkflowRequest" ON "WorkflowRequest"."PageID" = "SiteTree"."ID" WHERE "WorkflowRequest"."Status" = \'Approved\''); } } |