concrete/src/Page/Page.php
public function queueForDeletion()
    {
        $pages = [];
        $includeThisPage = true;
        if ($this->getCollectionPath() == Config::get('concrete.paths.trash')) {
            // we're in the trash. we can't delete the trash. we're skipping over the trash node.
            $includeThisPage = false;
        }
        $pages = $this->populateRecursivePages($pages, ['cID' => $this->getCollectionID()], $this->getCollectionParentID(), 0, $includeThisPage);
        // now, since this is deletion, we want to order the pages by level, which
        // should get us no funny business if the queue dies.
        usort($pages, ['Page', 'queueForDeletionSort']);
        $q = Queue::get('delete_page');
        foreach ($pages as $page) {
            $q->send(serialize($page));
        }
    }
public function queueForDeletion()
    {
        $pages = [];
        $includeThisPage = true;
        if ($this->getCollectionPath() == Config::get('concrete.paths.trash')) {
            // we're in the trash. we can't delete the trash. we're skipping over the trash node.
            $includeThisPage = false;
        }
        $pages = $this->populateRecursivePages($pages, ['cID' => $this->getCollectionID()], $this->getCollectionParentID(), 0, $includeThisPage);
        // now, since this is deletion, we want to order the pages by level, which
        // should get us no funny business if the queue dies.
        usort($pages, ['Page', 'queueForDeletionSort']);
        $q = Queue::get('delete_page');
        foreach ($pages as $page) {
            $q->send(serialize($page));
        }
    }
public function queueForDeletion ( ) { $ pages = [ ] ; $ includeThisPage = true ; if ( $ this -> getCollectionPath ( ) == Config :: get ( 'concrete.paths.trash' ) ) { // we're in the trash. we can't delete the trash. we're skipping over the trash node. $ includeThisPage = false ; } $ pages = $ this -> populateRecursivePages ( $ pages , [ 'cID' => $ this -> getCollectionID ( ) ] , $ this -> getCollectionParentID ( ) , 0 , $ includeThisPage ) ; // now, since this is deletion, we want to order the pages by level, which // should get us no funny business if the queue dies. usort ( $ pages , [ 'Page' , 'queueForDeletionSort' ] ) ; $ q = Queue :: get ( 'delete_page' ) ; foreach ( $ pages as $ page ) { $ q -> send ( serialize ( $ page ) ) ; } }
Add this page and its subpages to the Delete Page queue.
Add this page and its subpages to the Delete Page queue .