コード例 #1
0
ファイル: CurrencySelect.php プロジェクト: coolms/money
 /**
  * {@inheritDoc}
  */
 public function getValue()
 {
     if (null === ($value = parent::getValue())) {
         return (string) $this->getCurrencyList()->getDefault();
     }
     return $value;
 }
コード例 #2
0
ファイル: LocaleSelect.php プロジェクト: coolms/common
 /**
  * {@inheritDoc}
  */
 public function getValue()
 {
     if (null === ($value = parent::getValue())) {
         return (string) Locale::getDefault();
     }
     return $value;
 }
コード例 #3
0
ファイル: Timezone.php プロジェクト: Andyyang1981/pi
 /**
  * {@inheritDoc}
  */
 public function getValue()
 {
     if (!$this->value) {
         $this->value = date_default_timezone_get();
     }
     return parent::getValue();
 }