public function getPosterUrl($scaleType = 'default', $scale = null, $https = null)
    {
        //brak pliku
        if (null === $this->id || !$this->data->posterFileName) {
            return;
        }
        //ścieżka CDN
        $cdnPath = rtrim(\Mmi\App\FrontController::getInstance()->getView()->cdn ? \Mmi\App\FrontController::getInstance()->getView()->cdn : \Mmi\App\FrontController::getInstance()->getView()->url([], true, $https), '/');
        //pobranie ścieżki z systemu plików
        return $cdnPath . (new \Cms\Model\FileSystemModel($this->data->posterFileName))->getPublicPath($scaleType, $scale);
    }
public function getPosterUrl($scaleType = 'default', $scale = null, $https = null)
    {
        //brak pliku
        if (null === $this->id || !$this->data->posterFileName) {
            return;
        }
        //ścieżka CDN
        $cdnPath = rtrim(\Mmi\App\FrontController::getInstance()->getView()->cdn ? \Mmi\App\FrontController::getInstance()->getView()->cdn : \Mmi\App\FrontController::getInstance()->getView()->url([], true, $https), '/');
        //pobranie ścieżki z systemu plików
        return $cdnPath . (new \Cms\Model\FileSystemModel($this->data->posterFileName))->getPublicPath($scaleType, $scale);
    }
public function getPosterUrl ( $ scaleType = 'default' , $ scale = null , $ https = null ) { //brak pliku if ( null === $ this -> id || ! $ this -> data -> posterFileName ) { return ; } //ścieżka CDN $ cdnPath = rtrim ( \ Mmi \ App \ FrontController :: getInstance ( ) -> getView ( ) -> cdn ? \ Mmi \ App \ FrontController :: getInstance ( ) -> getView ( ) -> cdn : \ Mmi \ App \ FrontController :: getInstance ( ) -> getView ( ) -> url ( [ ] , true , $ https ) , '/' ) ; //pobranie ścieżki z systemu plików return $ cdnPath . ( new \ Cms \ Model \ FileSystemModel ( $ this -> data -> posterFileName ) ) -> getPublicPath ( $ scaleType , $ scale ) ; }
Pobiera adres postera pliku
@param string $scaleType scale, scalex, scaley, scalecrop
@param int|string $scale 320, 320x240
@param boolean $https null - bez zmian, true - tak, false - nie
@return string adres publiczny postera pliku
Pobiera adres postera pliku