Exemplo n.º 1
0
 public function __construct($setId, $overridesActiveField = false)
 {
     try {
         parent::__construct($setId, $overridesActiveField);
     } catch (Zend_Exception $e) {
         throw new Application_Model_Exception("Can't build a new Model_Encyclopedie_Article_Multilang", null, $e);
     }
 }
Exemplo n.º 2
0
 public function __construct($setId, $locale, $overridesActiveField = false)
 {
     $this->_localeCode = $locale;
     if (empty($this->_localeCode)) {
         throw new Application_Model_Exception("Locale Code is empty");
     }
     try {
         parent::__construct($setId, $overridesActiveField);
     } catch (Zend_Exception $e) {
         throw new Application_Model_Exception("Can't build a new Model_Encyclopedie_Article_Monolang", null, $e);
     }
 }