-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement copyResource -- Address #10. #20
Conversation
* @return string | ||
*/ | ||
public function copyResource($uri, | ||
$destination); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd add transactionality here too. Might want to do a lot of copying inside a transaction. All you'll have to do is call prepareUri in your implementation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool. I psyched myself out of including it 😄
// Ensure uri takes transaction into account. | ||
$uri = $this->prepareUri($uri, $transaction); | ||
// Create destinsation URI | ||
$destination_uri = "Destination: " . $destination; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You'll need to prepare this URI, as well.
Conflicts: src/Chullo.php src/IFedoraClient.php
Looks good. Merging. |
Implement copyResource -- Address #10.
See: #10
Still need to get TravisCI hooked up proper.
You can see the build here. It appears to be passing. But, same as with #19, I'm not confident I'm doing things right here.
tags @Islandora-CLAW/7-x-2-x-committers