프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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 ) : |
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 |
protected __construct ( unknown $profileId, array $profileData ) | ||
$profileId | unknown | ID of the profile |
$profileData | array | Profile data from disk. |
public getCodePageCacheKey ( ) : string | ||
리턴 | string | Hash of the code page data structure, to identify it for caching. |
public getCodePages ( ) : array | ||
리턴 | array | Associtive array of CodePage objects, indicating which encodings the printer supports. |
public getFeature ( string $featureName ) : mixed | ||
$featureName | string | Name of the feature to retrieve. |
리턴 | mixed | feature value. |
public static getProfileNames ( ) : array | ||
리턴 | array | Names of all profiles that exist. |
public getSupportsBarcodeB ( ) : boolean | ||
리턴 | boolean | True if Barcode B command is supported, false otherwise |
public getSupportsBitImageRaster ( ) : boolean | ||
리턴 | boolean | True if Bit Image Raster command is supported, false otherwise |
public getSupportsGraphics ( ) : boolean | ||
리턴 | boolean | True if Graphics command is supported, false otherwise |
public getSupportsPdf417Code ( ) : boolean | ||
리턴 | boolean | True if PDF417 code command is supported, false otherwise |
public getSupportsQrCode ( ) : boolean | ||
리턴 | boolean | True if QR code command is supported, false otherwise |
public getSupportsStarCommands ( ) : boolean | ||
리턴 | boolean | True if Star mode commands are supported, false otherwise |
protected static loadCapabilitiesDataFile ( ) |
protected suggestFeatureName ( string $featureName ) : array | ||
$featureName | string | Feature that does not exist |
리턴 | array | Three most similar feature names that do exist. |
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. |
protected string $codePageCacheKey | ||
리턴 | string |
protected array $codePages | ||
리턴 | array |
protected static array $encodings | ||
리턴 | array |
protected static array $profiles | ||
리턴 | array |