public function stageChildren($showAll=false) {
        $baseClass=ClassInfo::baseDataClass($this->owner->class);
        
        if($baseClass=='SnippetPackage') {
            if($this->owner->ID==0) {
                $staged=SnippetPackage::get();
            }
        }else if($baseClass=='SnippetLanguage') {
            if($this->owner->ID==0) {
                $staged=SnippetLanguage::get();
            }else {
                $staged=ArrayList::create(array_merge($this->owner->Folders()->toArray(), $this->owner->Snippets()->filter('FolderID', 0)->toArray()));
            }
        }else if($baseClass=='SnippetFolder') {
            $staged=ArrayList::create(array_merge($this->owner->Folders()->toArray(), $this->owner->Snippets()->toArray()));
        }else {
            $staged=new ArrayList();
        }
        
            
        $this->owner->extend("augmentStageChildren", $staged, $showAll);
        return $staged;
    }
public function stageChildren($showAll=false) {
        $baseClass=ClassInfo::baseDataClass($this->owner->class);
        
        if($baseClass=='SnippetPackage') {
            if($this->owner->ID==0) {
                $staged=SnippetPackage::get();
            }
        }else if($baseClass=='SnippetLanguage') {
            if($this->owner->ID==0) {
                $staged=SnippetLanguage::get();
            }else {
                $staged=ArrayList::create(array_merge($this->owner->Folders()->toArray(), $this->owner->Snippets()->filter('FolderID', 0)->toArray()));
            }
        }else if($baseClass=='SnippetFolder') {
            $staged=ArrayList::create(array_merge($this->owner->Folders()->toArray(), $this->owner->Snippets()->toArray()));
        }else {
            $staged=new ArrayList();
        }
        
            
        $this->owner->extend("augmentStageChildren", $staged, $showAll);
        return $staged;
    }
public function stageChildren ( $ showAll = false ) { $ baseClass = ClassInfo :: baseDataClass ( $ this -> owner -> class ) ; if ( $ baseClass == 'SnippetPackage' ) { if ( $ this -> owner -> ID == 0 ) { $ staged = SnippetPackage :: get ( ) ; } } else if ( $ baseClass == 'SnippetLanguage' ) { if ( $ this -> owner -> ID == 0 ) { $ staged = SnippetLanguage :: get ( ) ; } else { $ staged = ArrayList :: create ( array_merge ( $ this -> owner -> Folders ( ) -> toArray ( ) , $ this -> owner -> Snippets ( ) -> filter ( 'FolderID' , 0 ) -> toArray ( ) ) ) ; } } else if ( $ baseClass == 'SnippetFolder' ) { $ staged = ArrayList :: create ( array_merge ( $ this -> owner -> Folders ( ) -> toArray ( ) , $ this -> owner -> Snippets ( ) -> toArray ( ) ) ) ; } else { $ staged = new ArrayList ( ) ; } $ this -> owner -> extend ( "augmentStageChildren" , $ staged , $ showAll ) ; return $ staged ; }
Return children from the stage site

@param showAll Inlcude all of the elements, even those not shown in the menus.
(only applicable when extension is applied to {@link SiteTree}).
@return SS_List
Return children from the stage site