concrete/controllers/dialog/file/replace.php
protected function getReplacingFile()
    {
        if ($this->replacingFile === false) {
            $replacingFile = null;
            $fID = $this->request->request->get('fID', $this->request->query->get('fID'));
            if ($fID && is_scalar($fID)) {
                $fID = (int) $fID;
                if ($fID !== 0) {
                    $replacingFile = $this->app->make(EntityManagerInterface::class)->find(File::class, $fID);
                }
            }
            $this->setReplacingFile($replacingFile);
        }

        return $this->replacingFile;
    }
protected function getReplacingFile()
    {
        if ($this->replacingFile === false) {
            $replacingFile = null;
            $fID = $this->request->request->get('fID', $this->request->query->get('fID'));
            if ($fID && is_scalar($fID)) {
                $fID = (int) $fID;
                if ($fID !== 0) {
                    $replacingFile = $this->app->make(EntityManagerInterface::class)->find(File::class, $fID);
                }
            }
            $this->setReplacingFile($replacingFile);
        }

        return $this->replacingFile;
    }
protected function getReplacingFile ( ) { if ( $ this -> replacingFile === false ) { $ replacingFile = null ; $ fID = $ this -> request -> request -> get ( 'fID' , $ this -> request -> query -> get ( 'fID' ) ) ; if ( $ fID && is_scalar ( $ fID ) ) { $ fID = ( int ) $ fID ; if ( $ fID !== 0 ) { $ replacingFile = $ this -> app -> make ( EntityManagerInterface :: class ) -> find ( File :: class , $ fID ) ; } } $ this -> setReplacingFile ( $ replacingFile ) ; } return $ this -> replacingFile ; }
Get the file being replaced.

@return \Concrete\Core\Entity\File\File|null null if not found, a File instance otherwise
Get the file being replaced .