本文整理匯總了PHP中Zend\Barcode\Barcode::getBarcodeFont方法的典型用法代碼示例。如果您正苦於以下問題:PHP Barcode::getBarcodeFont方法的具體用法?PHP Barcode::getBarcodeFont怎麽用?PHP Barcode::getBarcodeFont使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Zend\Barcode\Barcode
的用法示例。
在下文中一共展示了Barcode::getBarcodeFont方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: __construct
/**
* Constructor
* @param array|\Zend\Config\Config $options
* @return void
*/
public function __construct($options = null)
{
$this->_getDefaultOptions();
if (Barcode\Barcode::getBarcodeFont() !== null) {
$this->_font = Barcode\Barcode::getBarcodeFont();
}
if ($options instanceof Config\Config) {
$options = $options->toArray();
}
if (is_array($options)) {
$this->setOptions($options);
}
/** @todo check if conversion is correct */
// $this->_type = strtolower(substr(get_class($this), strlen($this->_barcodeNamespace) + 1));
$this->_type = substr(strrchr(get_class($this), '\\'), 1);
if ($this->_mandatoryChecksum) {
$this->_withChecksum = true;
$this->_withChecksumInText = true;
}
}
示例2: __construct
/**
* Constructor
* @param array|\Zend\Config\Config $options
* @return void
*/
public function __construct($options = null)
{
$this->_getDefaultOptions();
$this->_font = Barcode\Barcode::getBarcodeFont();
if ($options instanceof Config) {
$options = $options->toArray();
}
if (is_array($options)) {
$this->setOptions($options);
}
$this->_type = strtolower(substr(get_class($this), strlen($this->_barcodeNamespace) + 1));
if ($this->_mandatoryChecksum) {
$this->_withChecksum = true;
$this->_withChecksumInText = true;
}
}
示例3: __construct
/**
* Constructor
* @param array|Traversable $options
* @return void
*/
public function __construct($options = null)
{
$this->getDefaultOptions();
$this->font = Barcode\Barcode::getBarcodeFont();
if ($options instanceof Traversable) {
$options = ArrayUtils::iteratorToArray($options);
}
if (is_array($options)) {
$this->setOptions($options);
}
$this->type = strtolower(substr(get_called_class(), strlen($this->barcodeNamespace) + 1));
if ($this->mandatoryChecksum) {
$this->withChecksum = true;
$this->withChecksumInText = true;
}
}