Differential D12033 Diff 29183 src/applications/differential/render/DifferentialChangesetRenderer.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/render/DifferentialChangesetRenderer.php
| Show All 24 Lines | abstract class DifferentialChangesetRenderer { | ||||
| private $newRender; | private $newRender; | ||||
| private $originalOld; | private $originalOld; | ||||
| private $originalNew; | private $originalNew; | ||||
| private $gaps; | private $gaps; | ||||
| private $mask; | private $mask; | ||||
| private $depths; | private $depths; | ||||
| private $originalCharacterEncoding; | private $originalCharacterEncoding; | ||||
| private $showEditAndReplyLinks; | private $showEditAndReplyLinks; | ||||
| private $canMarkDone; | |||||
| private $oldFile = false; | private $oldFile = false; | ||||
| private $newFile = false; | private $newFile = false; | ||||
| abstract public function getRendererKey(); | abstract public function getRendererKey(); | ||||
| public function setShowEditAndReplyLinks($bool) { | public function setShowEditAndReplyLinks($bool) { | ||||
| $this->showEditAndReplyLinks = $bool; | $this->showEditAndReplyLinks = $bool; | ||||
| ▲ Show 20 Lines • Show All 243 Lines • ▼ Show 20 Lines | abstract class DifferentialChangesetRenderer { | ||||
| protected function getRenderingReference() { | protected function getRenderingReference() { | ||||
| return $this->renderingReference; | return $this->renderingReference; | ||||
| } | } | ||||
| public function setRenderPropertyChangeHeader($should_render) { | public function setRenderPropertyChangeHeader($should_render) { | ||||
| $this->renderPropertyChangeHeader = $should_render; | $this->renderPropertyChangeHeader = $should_render; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| private function shouldRenderPropertyChangeHeader() { | private function shouldRenderPropertyChangeHeader() { | ||||
| return $this->renderPropertyChangeHeader; | return $this->renderPropertyChangeHeader; | ||||
| } | } | ||||
| public function setIsTopLevel($is) { | public function setIsTopLevel($is) { | ||||
| $this->isTopLevel = $is; | $this->isTopLevel = $is; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| private function getIsTopLevel() { | private function getIsTopLevel() { | ||||
| return $this->isTopLevel; | return $this->isTopLevel; | ||||
| } | } | ||||
| public function setCanMarkDone($can_mark_done) { | |||||
| $this->canMarkDone = $can_mark_done; | |||||
| return $this; | |||||
| } | |||||
| public function getCanMarkDone() { | |||||
| return $this->canMarkDone; | |||||
| } | |||||
| final public function renderChangesetTable($content) { | final public function renderChangesetTable($content) { | ||||
| $props = null; | $props = null; | ||||
| if ($this->shouldRenderPropertyChangeHeader()) { | if ($this->shouldRenderPropertyChangeHeader()) { | ||||
| $props = $this->renderPropertyChangeHeader(); | $props = $this->renderPropertyChangeHeader(); | ||||
| } | } | ||||
| $notice = null; | $notice = null; | ||||
| if ($this->getIsTopLevel()) { | if ($this->getIsTopLevel()) { | ||||
| ▲ Show 20 Lines • Show All 307 Lines • Show Last 20 Lines | |||||