示例#1
0
 public function setCharset($charset)
 {
     if (!Validate::isCharset($charset)) {
         throw new \Exception('Charset in\'t a valid charset type');
     }
     $this->_charset = $charset;
 }
示例#2
0
 public function setCharset($charset)
 {
     if (!Validate::isCharset($charset)) {
         throw new \Exception('Charset isn\'t a valid charset type for template : "' . $this->_name . '"');
     }
     $this->charset = $charset;
 }