PHP 클래스 Mike42\Escpos\CapabilityProfile

파일 보기 프로젝트 열기: mike42/escpos-php 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$codePageCacheKey string Hash of the code page data structure, to identify it for caching.
$codePages array Associtive array of CodePage objects, indicating which encodings the printer supports.
$colors array Not used.
$encodings array Data structure containing encodings loaded from disk, null if not loaded yet.
$features array Feature values.
$fonts array Not used
$media array Not used
$name string Name of the profile, including model number.
$notes string Notes on the profile, null if not set.
$profileId string ID of the profile.
$profiles array Data structure containing profiles loaded from disk, null if not loaded yet.
$vendor string Name of manufacturer.

공개 메소드들

메소드 설명
getCodePageCacheKey ( ) : string
getCodePages ( ) : array
getFeature ( string $featureName ) : mixed
getId ( ) : string
getName ( ) : string
getProfileNames ( ) : array
getSupportsBarcodeB ( ) : boolean
getSupportsBitImageRaster ( ) : boolean
getSupportsGraphics ( ) : boolean
getSupportsPdf417Code ( ) : boolean
getSupportsQrCode ( ) : boolean
getSupportsStarCommands ( ) : boolean
getVendor ( ) : string
load ( string $profileName ) : CapabilityProfile Retrieve the CapabilityProfile with the given ID.
suggestNearest ( string $input, array $choices, integer $num ) Return choices with smallest edit distance to an invalid input.

보호된 메소드들

메소드 설명
__construct ( unknown $profileId, array $profileData ) Construct new CapabilityProfile.
loadCapabilitiesDataFile ( ) Ensure that the capabilities.json data file has been loaded.
suggestFeatureName ( string $featureName ) : array
suggestProfileName ( string $profileName ) : array

메소드 상세

__construct() 보호된 메소드

The encoding data must be loaded from disk before calling.
protected __construct ( unknown $profileId, array $profileData )
$profileId unknown ID of the profile
$profileData array Profile data from disk.

getCodePageCacheKey() 공개 메소드

public getCodePageCacheKey ( ) : string
리턴 string Hash of the code page data structure, to identify it for caching.

getCodePages() 공개 메소드

public getCodePages ( ) : array
리턴 array Associtive array of CodePage objects, indicating which encodings the printer supports.

getFeature() 공개 메소드

public getFeature ( string $featureName ) : mixed
$featureName string Name of the feature to retrieve.
리턴 mixed feature value.

getId() 공개 메소드

public getId ( ) : string
리턴 string ID of the profile.

getName() 공개 메소드

public getName ( ) : string
리턴 string Name of the printer.

getProfileNames() 공개 정적인 메소드

public static getProfileNames ( ) : array
리턴 array Names of all profiles that exist.

getSupportsBarcodeB() 공개 메소드

public getSupportsBarcodeB ( ) : boolean
리턴 boolean True if Barcode B command is supported, false otherwise

getSupportsBitImageRaster() 공개 메소드

public getSupportsBitImageRaster ( ) : boolean
리턴 boolean True if Bit Image Raster command is supported, false otherwise

getSupportsGraphics() 공개 메소드

public getSupportsGraphics ( ) : boolean
리턴 boolean True if Graphics command is supported, false otherwise

getSupportsPdf417Code() 공개 메소드

public getSupportsPdf417Code ( ) : boolean
리턴 boolean True if PDF417 code command is supported, false otherwise

getSupportsQrCode() 공개 메소드

public getSupportsQrCode ( ) : boolean
리턴 boolean True if QR code command is supported, false otherwise

getSupportsStarCommands() 공개 메소드

public getSupportsStarCommands ( ) : boolean
리턴 boolean True if Star mode commands are supported, false otherwise

getVendor() 공개 메소드

public getVendor ( ) : string
리턴 string Vendor of this printer.

load() 공개 정적인 메소드

Retrieve the CapabilityProfile with the given ID.
public static load ( string $profileName ) : CapabilityProfile
$profileName string The ID of the profile to load.
리턴 CapabilityProfile The CapabilityProfile that was requested.

loadCapabilitiesDataFile() 보호된 정적인 메소드

Ensure that the capabilities.json data file has been loaded.
protected static loadCapabilitiesDataFile ( )

suggestFeatureName() 보호된 메소드

protected suggestFeatureName ( string $featureName ) : array
$featureName string Feature that does not exist
리턴 array Three most similar feature names that do exist.

suggestNearest() 공개 정적인 메소드

Return choices with smallest edit distance to an invalid input.
public static suggestNearest ( string $input, array $choices, integer $num )
$input string Input that is not a valid choice
$choices array Array of valid choices.
$num integer Number of suggestions to return

suggestProfileName() 보호된 정적인 메소드

protected static suggestProfileName ( string $profileName ) : array
$profileName string profile name that does not exist
리턴 array Three similar profile names that do exist, plus 'simple' and 'default' for good measure.

프로퍼티 상세

$codePageCacheKey 보호되어 있는 프로퍼티

Hash of the code page data structure, to identify it for caching.
protected string $codePageCacheKey
리턴 string

$codePages 보호되어 있는 프로퍼티

Associtive array of CodePage objects, indicating which encodings the printer supports.
protected array $codePages
리턴 array

$colors 보호되어 있는 프로퍼티

Not used.
protected array $colors
리턴 array

$encodings 보호되어 있는 정적으로 프로퍼티

Data structure containing encodings loaded from disk, null if not loaded yet.
protected static array $encodings
리턴 array

$features 보호되어 있는 프로퍼티

Feature values.
protected array $features
리턴 array

$fonts 보호되어 있는 프로퍼티

Not used
protected array $fonts
리턴 array

$media 보호되어 있는 프로퍼티

Not used
protected array $media
리턴 array

$name 보호되어 있는 프로퍼티

Name of the profile, including model number.
protected string $name
리턴 string

$notes 보호되어 있는 프로퍼티

Notes on the profile, null if not set.
protected string $notes
리턴 string

$profileId 보호되어 있는 프로퍼티

ID of the profile.
protected string $profileId
리턴 string

$profiles 보호되어 있는 정적으로 프로퍼티

Data structure containing profiles loaded from disk, null if not loaded yet.
protected static array $profiles
리턴 array

$vendor 보호되어 있는 프로퍼티

Name of manufacturer.
protected string $vendor
리턴 string