Converted API functions to Zend Framework. Converted pypo to use
the new Zendified URLs. Fixed bugs in the daemontool scripts. The installed scheduler is still not working at this point, but getting close.
This commit is contained in:
parent
38bc0de9a2
commit
84c2a3bceb
13 changed files with 126 additions and 29 deletions
|
@ -401,6 +401,26 @@ class Schedule {
|
|||
return $t[0]."-".$t[1]."-".$t[2]." ".$t[3].":".$t[4].":00";
|
||||
}
|
||||
|
||||
/**
|
||||
* Return true if the input string is in the format YYYY-MM-DD-HH-mm
|
||||
*
|
||||
* @param string $p_time
|
||||
* @return boolean
|
||||
*/
|
||||
public static function ValidPypoTimeFormat($p_time)
|
||||
{
|
||||
$t = explode("-", $p_time);
|
||||
if (count($t) != 5) {
|
||||
return false;
|
||||
}
|
||||
foreach ($t as $part) {
|
||||
if (!is_numeric($part)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Converts a time value as a string (with format HH:MM:SS.mmmmmm) to
|
||||
* millisecs.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue