public function getPortraitFile($size)
    {
        if (strpos($this->filename, '/')) {
            $filename = str_replace('/', '/avatars/'.$size, $this->filename);
        } else {
            $filename = $this->component.'/avatars/'.$size.$this->filename;
        }

        return $filename;
    }
public function getPortraitFile($size)
    {
        if (strpos($this->filename, '/')) {
            $filename = str_replace('/', '/avatars/'.$size, $this->filename);
        } else {
            $filename = $this->component.'/avatars/'.$size.$this->filename;
        }

        return $filename;
    }
public function getPortraitFile ( $ size ) { if ( strpos ( $ this -> filename , '/' ) ) { $ filename = str_replace ( '/' , '/avatars/' . $ size , $ this -> filename ) ; } else { $ filename = $ this -> component . '/avatars/' . $ size . $ this -> filename ; } return $ filename ; }
Return the avatar file for a size.

@see LibBaseDomainBehaviorPortraitable

@return string
Return the avatar file for a size .