Ejemplo n.º 1
0
 private static function setPhotoTagsAction()
 {
     Validator::required(isset($_POST['photoIDs'], $_POST['tags']), __METHOD__);
     $photo = new Photo($_POST['photoIDs']);
     Response::json($photo->setTags($_POST['tags']));
 }