public function getPortraitFile($size)
    {
        $filename = $this->filename;

        //get file extension
        $extension = explode('.', $filename);
        $extension = array_pop($extension);

        //remove extension
        $name = preg_replace('#\.[^.]*$#', '', $filename);

        $filename = $name.'_'.$size.'.'.$extension;

        return $filename;
    }
public function getPortraitFile($size)
    {
        $filename = $this->filename;

        //get file extension
        $extension = explode('.', $filename);
        $extension = array_pop($extension);

        //remove extension
        $name = preg_replace('#\.[^.]*$#', '', $filename);

        $filename = $name.'_'.$size.'.'.$extension;

        return $filename;
    }
public function getPortraitFile ( $ size ) { $ filename = $ this -> filename ; //get file extension $ extension = explode ( '.' , $ filename ) ; $ extension = array_pop ( $ extension ) ; //remove extension $ name = preg_replace ( '#\.[^.]*$#' , '' , $ filename ) ; $ filename = $ name . '_' . $ size . '.' . $ extension ; return $ filename ; }
Return the portrait file for a size. Override the Portriable behavior due
to some legacy.

@see LibBaseDomainBehaviorPortraitable

@return string
Return the portrait file for a size . Override the Portriable behavior due to some legacy .