concrete/src/Page/Page.php
public function getMasterCollectionID()
    {
        $pt = PageType::getByID($this->getPageTypeID());
        if (!is_object($pt)) {
            return 0;
        }
        $template = PageTemplate::getByID($this->getPageTemplateID());
        if (!is_object($template)) {
            return 0;
        }
        $c = $pt->getPageTypePageTemplateDefaultPageObject($template);

        return $c->getCollectionID();
    }
public function getMasterCollectionID()
    {
        $pt = PageType::getByID($this->getPageTypeID());
        if (!is_object($pt)) {
            return 0;
        }
        $template = PageTemplate::getByID($this->getPageTemplateID());
        if (!is_object($template)) {
            return 0;
        }
        $c = $pt->getPageTypePageTemplateDefaultPageObject($template);

        return $c->getCollectionID();
    }
public function getMasterCollectionID ( ) { $ pt = PageType :: getByID ( $ this -> getPageTypeID ( ) ) ; if ( ! is_object ( $ pt ) ) { return 0 ; } $ template = PageTemplate :: getByID ( $ this -> getPageTemplateID ( ) ) ; if ( ! is_object ( $ template ) ) { return 0 ; } $ c = $ pt -> getPageTypePageTemplateDefaultPageObject ( $ template ) ; return $ c -> getCollectionID ( ) ; }
Get the master page of this page, given its page template and page type.

@return int returns 0 if not found
Get the master page of this page given its page template and page type .