示例#1
0
文件: Int.php 项目: floxim/floxim
 public function validateValue($value)
 {
     if (!parent::validateValue($value)) {
         return false;
     }
     if ($value && $value != strval(intval($value))) {
         $this->error = sprintf(FX_FRONT_FIELD_INT_ENTER_INTEGER, $this['name']);
         return false;
     }
     return true;
 }
示例#2
0
 public function getJsField($content)
 {
     parent::getJsField($content);
     $this->loadValuesByStr($content[$this['keyword']]);
     $this->_js_field['day'] = $this->day;
     $this->_js_field['month'] = $this->month;
     $this->_js_field['year'] = $this->year;
     $this->_js_field['hours'] = $this->hours;
     $this->_js_field['minutes'] = $this->minutes;
     $this->_js_field['seconds'] = $this->seconds;
     return $this->_js_field;
 }
示例#3
0
文件: Float.php 项目: floxim/floxim
 public function getSavestring()
 {
     $val = parent::getSavestring();
     $val = (double) str_replace(",", '.', $val);
     return $val;
 }