Public Member Functions | |
| getCodePageCacheKey () | |
| getCodePages () | |
| getFeature ($featureName) | |
| getId () | |
| getName () | |
| getSupportsBarcodeB () | |
| getSupportsBitImageRaster () | |
| getSupportsGraphics () | |
| getSupportsPdf417Code () | |
| getSupportsQrCode () | |
| getSupportsStarCommands () | |
| getVendor () | |
Static Public Member Functions | |
| static | getProfileNames () |
| static | load ($profileName) |
| static | suggestNearest ($input, array $choices, $num) |
Protected Member Functions | |
| __construct ($profileId, array $profileData) | |
| suggestFeatureName ($featureName) | |
Static Protected Member Functions | |
| static | loadCapabilitiesDataFile () |
| static | suggestProfileName ($profileName) |
Protected Attributes | |
| $codePageCacheKey | |
| $codePages | |
| $colors | |
| $features | |
| $fonts | |
| $media | |
| $name | |
| $notes | |
| $profileId | |
| $vendor | |
Static Protected Attributes | |
| static | $encodings = null |
| static | $profiles = null |
Store compatibility information about one printer.
|
protected |
Construct new CapabilityProfile. The encoding data must be loaded from disk before calling.
| string | $profileId | ID of the profile |
| array | $profileData | Profile data from disk. |
| Mike42\Escpos\CapabilityProfile::getCodePageCacheKey | ( | ) |
| Mike42\Escpos\CapabilityProfile::getCodePages | ( | ) |
| Mike42\Escpos\CapabilityProfile::getFeature | ( | $featureName | ) |
| string | $featureName | Name of the feature to retrieve. |
| Mike42\Escpos\CapabilityProfile::getId | ( | ) |
| Mike42\Escpos\CapabilityProfile::getName | ( | ) |
|
static |
| Mike42\Escpos\CapabilityProfile::getSupportsBarcodeB | ( | ) |
| Mike42\Escpos\CapabilityProfile::getSupportsBitImageRaster | ( | ) |
| Mike42\Escpos\CapabilityProfile::getSupportsGraphics | ( | ) |
| Mike42\Escpos\CapabilityProfile::getSupportsPdf417Code | ( | ) |
| Mike42\Escpos\CapabilityProfile::getSupportsQrCode | ( | ) |
| Mike42\Escpos\CapabilityProfile::getSupportsStarCommands | ( | ) |
| Mike42\Escpos\CapabilityProfile::getVendor | ( | ) |
|
static |
Retrieve the CapabilityProfile with the given ID.
| string | $profileName | The ID of the profile to load. |
| InvalidArgumentException | Where the ID does not exist. Some similarly-named profiles will be suggested in the Exception text. |
|
staticprotected |
Ensure that the capabilities.json data file has been loaded.
|
protected |
| string | $featureName | Feature that does not exist |
|
static |
Return choices with smallest edit distance to an invalid input.
| string | $input | Input that is not a valid choice |
| array | $choices | Array of valid choices. |
| int | $num | Number of suggestions to return |
|
staticprotected |
| string | $profileName | profile name that does not exist |
|
protected |
Hash of the code page data structure, to identify it for caching.
|
protected |
Associtive array of CodePage objects, indicating which encodings the printer supports.
|
protected |
Not used.
|
staticprotected |
Data structure containing encodings loaded from disk, null if not loaded yet.
|
protected |
Feature values.
|
protected |
Not used
|
protected |
Not used
|
protected |
Name of the profile, including model number.
|
protected |
Notes on the profile, null if not set.
|
protected |
ID of the profile.
|
staticprotected |
Data structure containing profiles loaded from disk, null if not loaded yet.
|
protected |
Name of manufacturer.
1.8.8