コード例 #1
0
 public function filter($value)
 {
     if (is_array($value)) {
         $value = vkNgine_Form_Element_Date::getDatestring($value, $this->getDateFormat());
     }
     if ($value == $this->getEmptyDate()) {
         $value = null;
     }
     return $value;
 }
コード例 #2
0
 /**
  * Enter description here ...
  * 
  * @param string $value
  * @param string $format
  * @return Ambigous <string, mixed>
  */
 public function getDateValue($value, $format = 'yyyy-mm-dd')
 {
     return vkNgine_Form_Element_Date::getDatestring($value, $format);
 }