PHP 클래스 RunMyBusiness\Initialcon\Initialcon

파일 보기 프로젝트 열기: runmybusiness/initialcon 1 사용 예제들

공개 메소드들

메소드 설명
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