From d992deea1d47732b608df897cd70006e8265201f Mon Sep 17 00:00:00 2001 From: zYne Date: Tue, 4 Sep 2007 20:49:35 +0000 Subject: [PATCH] --- lib/Doctrine/Template/I18n.php | 49 ++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 lib/Doctrine/Template/I18n.php diff --git a/lib/Doctrine/Template/I18n.php b/lib/Doctrine/Template/I18n.php new file mode 100644 index 000000000..d3c45fc06 --- /dev/null +++ b/lib/Doctrine/Template/I18n.php @@ -0,0 +1,49 @@ +. + */ +/** + * Doctrine_Template_I18n + * + * @package Doctrine + * @license http://www.opensource.org/licenses/lgpl-license.php LGPL + * @category Object Relational Mapping + * @link www.phpdoctrine.com + * @since 1.0 + * @version $Revision$ + * @author Konsta Vesterinen + */ +class Doctrine_Template_I18n extends Doctrine_Template +{ + protected $_i18n; + + public function __construct(array $options) + { + $this->_i18n = new Doctrine_I18n($options); + } + public function setUp() + { + $this->_i18n->setOption('table', $this->_table); + $this->_i18n->buildDefinition($this->_table); + } + public function getI18n() + { + return $this->_i18n; + } +}