concrete/controllers/dialog/file/import.php
protected function getOriginalPage()
    {
        if ($this->originalPage === false) {
            $originalPage = null;
            $ocID = $this->request->request->get('ocID', $this->request->query->get('ocID'));
            if ($ocID && is_scalar($ocID)) {
                $ocID = (int) $ocID;
                if ($ocID !== 0) {
                    $originalPage = Page::getByID($ocID);
                }
            }
            $this->setOriginalPage($originalPage);
        }

        return $this->originalPage;
    }
protected function getOriginalPage()
    {
        if ($this->originalPage === false) {
            $originalPage = null;
            $ocID = $this->request->request->get('ocID', $this->request->query->get('ocID'));
            if ($ocID && is_scalar($ocID)) {
                $ocID = (int) $ocID;
                if ($ocID !== 0) {
                    $originalPage = Page::getByID($ocID);
                }
            }
            $this->setOriginalPage($originalPage);
        }

        return $this->originalPage;
    }
protected function getOriginalPage ( ) { if ( $ this -> originalPage === false ) { $ originalPage = null ; $ ocID = $ this -> request -> request -> get ( 'ocID' , $ this -> request -> query -> get ( 'ocID' ) ) ; if ( $ ocID && is_scalar ( $ ocID ) ) { $ ocID = ( int ) $ ocID ; if ( $ ocID !== 0 ) { $ originalPage = Page :: getByID ( $ ocID ) ; } } $ this -> setOriginalPage ( $ originalPage ) ; } return $ this -> originalPage ; }
Get the page where the file is originally placed on.

@return \Concrete\Core\Page\Page|null null: none; Page: specific page
Get the page where the file is originally placed on .