Property | Type | Description | |
---|---|---|---|
$cacheDir | string | Get app cache dir | |
$font | string | Get default font | |
$position | array | Determine score points position | |
$rootDir | string | Get app root dir | |
$type | array | Get badge type |
Method | Description | |
---|---|---|
__construct ( Imagine\Image\ImagineInterface $imagine, null | Symfony\Component\Filesystem\Filesystem $filesystem = null ) | Constructor | |
generate ( |
Generate Badge images | |
setCacheDir ( string $cacheDir ) | ||
setRootDir ( string $rootDir ) | ||
show ( |
Method | Description | |
---|---|---|
createBadgesDir ( ) | Check and create a dir for uploaded badges | |
getBadgeFile ( |
Get badge image full path | |
getPositionByType ( integer | string $score, string $type ) : Imagine\Image\Point | Get score points position x:y | |
getResourceDir ( ) : string | ||
setFont ( Imagine\Image\ImagineInterface $imagine, string $font, integer $size, string $color = 'ffffff' ) : string | Return full font path | |
shorten ( string $name, integer $length ) : string | Trim long bundle name |
public __construct ( Imagine\Image\ImagineInterface $imagine, null | Symfony\Component\Filesystem\Filesystem $filesystem = null ) | ||
$imagine | Imagine\Image\ImagineInterface | |
$filesystem | null | Symfony\Component\Filesystem\Filesystem |
protected createBadgesDir ( ) |
public generate ( |
||
$bundle |
protected getBadgeFile ( |
||
$bundle | ||
$type | string | |
return | string |
protected array $position | ||
return | array |