Fixed the calendar load test script. Changed the code to use the DateTime
object and also fixed a bug when creating the ShowInstance object -- it was using the wrong ID in the constructor. Added some documentation to the Shows::getShows() method.
This commit is contained in:
parent
8f8bd68849
commit
2e74ba7c06
2 changed files with 67 additions and 59 deletions
|
@ -260,12 +260,15 @@ class Show {
|
|||
}
|
||||
|
||||
/**
|
||||
* Get all the show instances in the given time range.
|
||||
*
|
||||
* @param string $start_timestamp
|
||||
* In the format "YYYY-MM-DD HH:mm:ss"
|
||||
* In the format "YYYY-MM-DD HH:mm:ss". This time is inclusive.
|
||||
* @param string $end_timestamp
|
||||
* In the format "YYYY-MM-DD HH:mm:ss"
|
||||
* In the format "YYYY-MM-DD HH:mm:ss". This time is inclusive.
|
||||
* @param unknown_type $excludeInstance
|
||||
* @param boolean $onlyRecord
|
||||
* @return array
|
||||
*/
|
||||
public static function getShows($start_timestamp, $end_timestamp, $excludeInstance=NULL, $onlyRecord=FALSE)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue