public function setDirectories(BBApplication $application = null)
    {
        if (null !== $application) {
            $this->_application = $application;

            $this->setTemporaryDir($application->getTemporaryDir())
                    ->setStorageDir($application->getStorageDir())
                    ->setMediaDir($application->getMediaDir());
        }

        return $this;
    }
public function setDirectories(BBApplication $application = null)
    {
        if (null !== $application) {
            $this->_application = $application;

            $this->setTemporaryDir($application->getTemporaryDir())
                    ->setStorageDir($application->getStorageDir())
                    ->setMediaDir($application->getMediaDir());
        }

        return $this;
    }
public function setDirectories ( BBApplication $ application = null ) { if ( null !== $ application ) { $ this -> _application = $ application ; $ this -> setTemporaryDir ( $ application -> getTemporaryDir ( ) ) -> setStorageDir ( $ application -> getStorageDir ( ) ) -> setMediaDir ( $ application -> getMediaDir ( ) ) ; } return $ this ; }
Set the storage directories define by the BB5 application.

@param \BackBee\BBApplication $application

@return \BackBee\ClassContent\Repository\Element\fileRepository
Set the storage directories define by the BB5 application .