Пример #1
0
 /**
  * set Decorator option (intercept 'fallbackLang' option).
  * I don't know why it's needed, but it doesn't work without.
  *
  * @param string $option option name
  * @param mixed  $value  option value
  *
  * @return self
  */
 function setOption($option, $value = null)
 {
     if ($option == 'fallbackLang') {
         $this->fallbackLang = $value;
         return $this;
     }
     return parent::setOption($option, $value);
 }
Пример #2
0
 /**
  * set Decorator option (intercept 'fallbackLang' option).
  * I don't know why it's needed, but it doesn't work without.
  *
  * @param string $option option name
  * @param mixed  $value  option value
  *
  * @return void
  */
 function setOption($option, $value = null)
 {
     if ($option == 'fallbackLang') {
         $this->fallbackLang = $value;
     } else {
         parent::setOption($option, $value);
     }
 }