Added the zend framework 2 library, the path is specified in line no.26 in zend_modul...
[openemr.git] / interface / modules / zend_modules / library / Zend / Validator / Translator / TranslatorAwareInterface.php
blob7089da2d92f393660ccf726b9dae3a53df918a76
1 <?php
2 /**
3 * Zend Framework (http://framework.zend.com/)
4 *;
5 * @link http://github.com/zendframework/zf2 for the canonical source repository
6 * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
7 * @license http://framework.zend.com/license/new-bsd New BSD License
8 */
10 namespace Zend\Validator\Translator;
12 interface TranslatorAwareInterface
14 /**
15 * Sets translator to use in helper
17 * @param TranslatorInterface $translator [optional] translator.
18 * Default is null, which sets no translator.
19 * @param string $textDomain [optional] text domain
20 * Default is null, which skips setTranslatorTextDomain
21 * @return self
23 public function setTranslator(TranslatorInterface $translator = null, $textDomain = null);
25 /**
26 * Returns translator used in object
28 * @return TranslatorInterface|null
30 public function getTranslator();
32 /**
33 * Checks if the object has a translator
35 * @return bool
37 public function hasTranslator();
39 /**
40 * Sets whether translator is enabled and should be used
42 * @param bool $enabled [optional] whether translator should be used.
43 * Default is true.
44 * @return self
46 public function setTranslatorEnabled($enabled = true);
48 /**
49 * Returns whether translator is enabled and should be used
51 * @return bool
53 public function isTranslatorEnabled();
55 /**
56 * Set translation text domain
58 * @param string $textDomain
59 * @return TranslatorAwareInterface
61 public function setTranslatorTextDomain($textDomain = 'default');
63 /**
64 * Return the translation text domain
66 * @return string
68 public function getTranslatorTextDomain();