SAAS-1083 - work on publish dialog

This commit is contained in:
Duncan Sommerville 2015-10-28 18:54:30 -04:00
parent 05f51a9a2d
commit e97aa199bd
8 changed files with 198 additions and 41 deletions

View file

@ -111,19 +111,5 @@ class Application_Service_MediaService
}
}
/**
* Publish or remove the file with the given file ID from the services
* specified in the request data (ie. SoundCloud, the station podcast)
*
* @param int $fileId ID of the file to be published
* @param array $data request data containing what services to publish to
*/
public static function publish($fileId, $data) {
foreach ($data as $k => $v) {
$service = PublishServiceFactory::getService($k);
$service->$v($fileId);
}
}
}