Added Ofir's Calendar load test.
In order to make it work, I made the following changes: Merged Playlist::Insert() into the create() function, now there is only one way to create a playlist. Renamed Show::addShow() to Show::create() to make the API like the other classes. It returns the created show ID now. Renamed Show::populateShowUntilLastGeneratedDate() to Show::populateShowUntil(), allowed it to accept a second parameter for an end date. Renamed Show::populateShowsUntil() to Show::populateAllShowsInRange(). Added documentation to a number of functions.
This commit is contained in:
parent
e5d4968d1a
commit
e5cbfa6ecd
6 changed files with 255 additions and 96 deletions
|
@ -397,8 +397,8 @@ class ScheduleController extends Zend_Controller_Action
|
|||
|
||||
$userInfo = Zend_Auth::getInstance()->getStorage()->read();
|
||||
$user = new User($userInfo->id);
|
||||
if($user->isAdmin()) {
|
||||
Show::addShow($data);
|
||||
if ($user->isAdmin()) {
|
||||
Show::create($data);
|
||||
}
|
||||
|
||||
//send back a new form for the user.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue