Actualización

This commit is contained in:
Xes
2025-04-10 12:49:05 +02:00
parent 4aff98e77b
commit 1cdd00920f
9151 changed files with 1800913 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
<?php
/* For licensing terms, see /license.txt */
/** @author Bart Mollet, Julio Montoya */
/**
* Class HTML_QuickForm_Rule_Date.
*/
class HTML_QuickForm_Rule_Date extends HTML_QuickForm_Rule
{
/**
* Check a date.
*
* @see HTML_QuickForm_Rule
*
* @param string $date example 2014-04-30
* @param array $options
*
* @return bool True if date is valid
*/
public function validate($date, $options)
{
return api_is_valid_date($date, 'Y-m-d');
}
}