Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phragment/storage/PhragmentFragment.php
Show First 20 Lines • Show All 112 Lines • ▼ Show 20 Lines | $this->openTransaction(); | ||||
$version->setSequence($sequence); | $version->setSequence($sequence); | ||||
$version->setFragmentPHID($this->getPHID()); | $version->setFragmentPHID($this->getPHID()); | ||||
$version->setFilePHID($file->getPHID()); | $version->setFilePHID($file->getPHID()); | ||||
$version->save(); | $version->save(); | ||||
$this->setLatestVersionPHID($version->getPHID()); | $this->setLatestVersionPHID($version->getPHID()); | ||||
$this->save(); | $this->save(); | ||||
$this->saveTransaction(); | $this->saveTransaction(); | ||||
$file->attachToObject($viewer, $version->getPHID()); | |||||
} | } | ||||
/** | /** | ||||
* Apply the specified ZIP archive onto the fragment, removing | * Apply the specified ZIP archive onto the fragment, removing | ||||
* and creating fragments as needed. | * and creating fragments as needed. | ||||
*/ | */ | ||||
public function updateFromZIP( | public function updateFromZIP( | ||||
PhabricatorUser $viewer, | PhabricatorUser $viewer, | ||||
▲ Show 20 Lines • Show All 210 Lines • Show Last 20 Lines |