Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Merge branch 'master' of git://github.com/zendframework/zf2 into zf11884
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Kellner committed Nov 19, 2011
Show file tree
Hide file tree
Showing 72 changed files with 2,737 additions and 2,659 deletions.
251 changes: 97 additions & 154 deletions src/Barcode.php

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/Exception/InvalidArgumentException.php
Expand Up @@ -23,12 +23,12 @@
* @namespace
*/
namespace Zend\Barcode\Exception;

use Zend\Barcode\Exception;

/**
* Exception for Zend_Barcode component.
*
* @uses Zend\Exception
* @category Zend
* @package Zend_Barcode
* @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
Expand All @@ -38,4 +38,4 @@ class InvalidArgumentException
extends \InvalidArgumentException
implements Exception
{
}
}
4 changes: 2 additions & 2 deletions src/Exception/RendererCreationException.php
Expand Up @@ -23,12 +23,12 @@
* @namespace
*/
namespace Zend\Barcode\Exception;

use Zend\Barcode\Exception;

/**
* Exception for Zend_Barcode component.
*
* @uses Zend\Exception
* @category Zend
* @package Zend_Barcode
* @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
Expand All @@ -38,4 +38,4 @@ class RendererCreationException
extends \InvalidArgumentException
implements Exception
{
}
}
48 changes: 20 additions & 28 deletions src/BarcodeObject.php → src/Object.php
Expand Up @@ -23,7 +23,6 @@
* @namespace
*/
namespace Zend\Barcode;
use Zend\Config\Config;

/**
* Interface for generate Barcode
Expand All @@ -33,34 +32,27 @@
* @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface BarcodeObject
interface Object
{
/**
* Constructor
* @param array|\Zend\Config\Config $options
* @param array|Traversable $options
* @return void
*/
public function __construct($options = null);

/**
* Set barcode state from options array
* @param array $options
* @return \Zend\Barcode\BarcodeObject
* @return Object
*/
public function setOptions($options);

/**
* Set barcode state from config object
* @param \Zend\Config\Config $config
* @return \Zend\Barcode\BarcodeObject
*/
public function setConfig(Config $config);

/**
* Set barcode namespace for autoloading
*
* @param string $namespace
* @return \Zend\Barcode\BarcodeObject
* @return Object
*/
public function setBarcodeNamespace($namespace);

Expand All @@ -80,7 +72,7 @@ public function getType();
/**
* Set height of the barcode bar
* @param integer $value
* @return \Zend\Barcode\BarcodeObject
* @return Object
*/
public function setBarHeight($value);

Expand All @@ -93,7 +85,7 @@ public function getBarHeight();
/**
* Set thickness of thin bar
* @param integer $value
* @return \Zend\Barcode\BarcodeObject
* @return Object
*/
public function setBarThinWidth($value);

Expand All @@ -106,7 +98,7 @@ public function getBarThinWidth();
/**
* Set thickness of thick bar
* @param integer $value
* @return \Zend\Barcode\BarcodeObject
* @return Object
*/
public function setBarThickWidth($value);

Expand All @@ -120,7 +112,7 @@ public function getBarThickWidth();
* Set factor applying to
* thinBarWidth - thickBarWidth - barHeight - fontSize
* @param integer $value
* @return \Zend\Barcode\BarcodeObject
* @return Object
*/
public function setFactor($value);

Expand All @@ -134,7 +126,7 @@ public function getFactor();
/**
* Set color of the barcode and text
* @param string $value
* @return \Zend\Barcode\BarcodeObject
* @return Object
*/
public function setForeColor($value);

Expand All @@ -147,7 +139,7 @@ public function getForeColor();
/**
* Set the color of the background
* @param integer $value
* @return \Zend\Barcode\BarcodeObject
* @return Object
*/
public function setBackgroundColor($value);

Expand All @@ -160,7 +152,7 @@ public function getBackgroundColor();
/**
* Activate/deactivate drawing of the bar
* @param boolean $value
* @return \Zend\Barcode\BarcodeObject
* @return Object
*/
public function setWithBorder($value);

Expand All @@ -172,14 +164,14 @@ public function getWithBorder();

/**
* Allow fast inversion of font/bars color and background color
* @return \Zend\Barcode\BarcodeObject
* @return Object
*/
public function setReverseColor();

/**
* Set orientation of barcode and text
* @param float $value
* @return \Zend\Barcode\BarcodeObject
* @return Object
*/
public function setOrientation($value);

Expand All @@ -192,7 +184,7 @@ public function getOrientation();
/**
* Set text to encode
* @param string $value
* @return \Zend\Barcode\BarcodeObject
* @return Object
*/
public function setText($value);

Expand All @@ -217,7 +209,7 @@ public function getTextToDisplay();
/**
* Activate/deactivate drawing of text to encode
* @param boolean $value
* @return \Zend\Barcode\BarcodeObject
* @return Object
*/
public function setDrawText($value);

Expand All @@ -231,7 +223,7 @@ public function getDrawText();
* Activate/deactivate the adjustment of the position
* of the characters to the position of the bars
* @param boolean $value
* @return \Zend\Barcode\BarcodeObject
* @return Object
*/
public function setStretchText($value);

Expand All @@ -247,7 +239,7 @@ public function getStretchText();
* of the checksum character
* added to the barcode text
* @param boolean $value
* @return \Zend\Barcode\BarcodeObject
* @return Object
*/
public function setWithChecksum($value);

Expand All @@ -263,7 +255,7 @@ public function getWithChecksum();
* of the checksum character
* added to the barcode text
* @param boolean $value
* @return \Zend\Barcode\BarcodeObject
* @return Object
*/
public function setWithChecksumInText($value);

Expand All @@ -279,7 +271,7 @@ public function getWithChecksumInText();
* - if integer between 1 and 5, use gd built-in fonts
* - if string, $value is assumed to be the path to a TTF font
* @param integer|string $value
* @return \Zend\Barcode\BarcodeObject
* @return Object
*/
public function setFont($value);

Expand All @@ -292,7 +284,7 @@ public function getFont();
/**
* Set the size of the font in case of TTF
* @param float $value
* @return \Zend\Barcode\BarcodeObject
* @return Object
*/
public function setFontSize($value);

Expand Down

0 comments on commit f6cf6f8

Please sign in to comment.