PHP Класс RunMyBusiness\Initialcon\Initialcon

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
displayImage ( string $initials, string $identifier, integer $size = 64, string $hexaColor = null ) Display an Initialcon image.
getColor ( ) : string Get the color.
getFontPath ( ) : string Get the font path.
getHash ( ) : string Get the Initialcon string hash.
getImageData ( string $initials, string $identifier, integer $size = 64, string $hexaColor = null ) : string Get an Initialcon PNG image data.
getImageDataUri ( string $initials, string $identifier, integer $size = 64, string $hexaColor = null ) : string Get an Initialcon PNG image data.
getImageObject ( string $initials, string $identifier, integer $size = 64, string $hexaColor = null ) : Intervention\Image\ImageManagerStatic Display an Initialcon image.
getSize ( ) : integer Get the image size.
getTextSize ( ) : integer Get the text size.
setColor ( string $color ) : Initialcon Set the image color.
setFontPath ( string $path ) Set the font path.
setIdentifier ( $identifier ) : Initialcon Generate a hash fron the identifier.
setInitials ( $initials ) : Initialcon Generate a hash fron the identifier.
setSize ( integer $size ) : Initialcon Set the image size.

Приватные методы

Метод Описание
convertHashToArrayOfBoolean ( ) : Initialcon Convert the hash into an multidimensionnal array of boolean.
convertHexaToBoolean ( string $hexa ) : boolean Convert an heaxecimal number into a boolean.
generateImage ( $initials, $identifier, integer $size, $color ) Generate the Initialcon image.

Описание методов

displayImage() публичный Метод

Display an Initialcon image.
public displayImage ( string $initials, string $identifier, integer $size = 64, string $hexaColor = null )
$initials string
$identifier string
$size integer
$hexaColor string

getColor() публичный Метод

Get the color.
public getColor ( ) : string
Результат string

getFontPath() публичный Метод

Get the font path.
public getFontPath ( ) : string
Результат string

getHash() публичный Метод

Get the Initialcon string hash.
public getHash ( ) : string
Результат string

getImageData() публичный Метод

Get an Initialcon PNG image data.
public getImageData ( string $initials, string $identifier, integer $size = 64, string $hexaColor = null ) : string
$initials string
$identifier string
$size integer
$hexaColor string
Результат string

getImageDataUri() публичный Метод

Get an Initialcon PNG image data.
public getImageDataUri ( string $initials, string $identifier, integer $size = 64, string $hexaColor = null ) : string
$initials string
$identifier string
$size integer
$hexaColor string
Результат string

getImageObject() публичный Метод

Display an Initialcon image.
public getImageObject ( string $initials, string $identifier, integer $size = 64, string $hexaColor = null ) : Intervention\Image\ImageManagerStatic
$initials string
$identifier string
$size integer
$hexaColor string
Результат Intervention\Image\ImageManagerStatic

getSize() публичный Метод

Get the image size.
public getSize ( ) : integer
Результат integer

getTextSize() публичный Метод

Get the text size.
public getTextSize ( ) : integer
Результат integer

setColor() публичный Метод

Set the image color.
public setColor ( string $color ) : Initialcon
$color string The color in hexa (6 chars)
Результат Initialcon

setFontPath() публичный Метод

Set the font path.
public setFontPath ( string $path )
$path string

setIdentifier() публичный Метод

Generate a hash fron the identifier.
public setIdentifier ( $identifier ) : Initialcon
Результат Initialcon

setInitials() публичный Метод

Generate a hash fron the identifier.
public setInitials ( $initials ) : Initialcon
Результат Initialcon

setSize() публичный Метод

Set the image size.
public setSize ( integer $size ) : Initialcon
$size integer
Результат Initialcon