/** * Sets the value of this field from the posted form. * @param array $post The $_POST array holding the values for this form. */ public function setFromPost($post) { if (is_array($post)) { if (array_key_exists('month', $post)) { $this->setValue(I2CE_Date::getDateTime($post['second'], $post['minute'], $post['hour'], $post['day'], $post['month'], $post['year'])); return; } } elseif (is_string($post)) { $this->setFromDB($post); return; } $this->setValue(I2CE_Date::getDateTime()); }