示例#1
0
 public function __construct($options)
 {
     $this->_uidTable = Centurion_Db::getSingleton('translation/uid');
     $this->_tagTable = Centurion_Db::getSingleton('translation/tag');
     $this->_languageTable = Centurion_Db::getSingleton('translation/language');
     $this->_tagUidTable = Centurion_Db::getSingleton('translation/tagUid');
     parent::__construct($options);
     if ($cached = self::getCache()->load('Translation_Model_Translate_Adapter_Array_Cache')) {
         list($this->_checkedWord, $this->_checkedTag, $this->_checkedWordTag) = $cached;
     }
 }
示例#2
0
 public function __construct($data, $locale = null, array $options = array())
 {
     parent::__construct($data, $locale, $options);
     Infra_AuthHelper::registerNamespaceChangedCallback(array($this, 'reload'), 'Infra_TranslateAdapter::reload');
 }