Barcode/Renderer/Svg.php
Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled
with this package in the file LICENSE.txt.
It is also available through the world-wide-web at this URL:
http://framework.zend.com/license/new-bsd
If you did not receive a copy of the license and are unable to
obtain it through the world-wide-web, please send an email
to [email protected] so we can send you a copy immediately.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Barcode
- Subpackage
- Renderer
- Version
- $Id: Image.php 20366 2010-01-18 03:56:52Z ralph $
\Zend_Barcode_Renderer_Svg
Package: Zend_Barcode
Class for rendering the barcode as svg
- Parent(s)
- \Zend_Barcode_Renderer_RendererAbstract
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties
\DOMElement $_rootElement = null
Root element of the XML structure
Default value
null
Details- Type
- \DOMElement
Methods
_appendRootElement(string $tagName, array $attributes = array(), string $textContent = null) : void
Append a new DOMElement to the root element
Parameters
Name | Type | Description |
---|---|---|
$tagName | string | |
$attributes | array | |
$textContent | string |
_createElement(string $tagName, array $attributes = array(), string $textContent = null) : \DOMElement
Create DOMElement
Parameters
Returns
Name | Type | Description |
---|---|---|
$tagName | string | |
$attributes | array | |
$textContent | string |
Type | Description |
---|---|
\DOMElement |
_drawPolygon(array $points, integer $color, boolean $filled = true) : void
Draw a polygon in the svg resource
Parameters
Name | Type | Description |
---|---|---|
$points | array | |
$color | integer | |
$filled | boolean |
_drawText(string $text, float $size, array $position, string $font, integer $color, string $alignment = 'center', float $orientation = 0) : void
Draw a polygon in the svg resource
Parameters
Name | Type | Description |
---|---|---|
$text | string | |
$size | float | |
$position | array | |
$font | string | |
$color | integer | |
$alignment | string | |
$orientation | float |
setHeight(null | integer $value) : \Zend_Image_Barcode_Abstract
Set height of the result image
Parameters
Returns
Details
Name | Type | Description |
---|---|---|
$value | null | integer |
Type | Description |
---|---|
\Zend_Image_Barcode_Abstract |
- Throw