Changeset View
Changeset View
Standalone View
Standalone View
src/view/phui/PHUIPropertyListView.php
Show First 20 Lines • Show All 109 Lines • ▼ Show 20 Lines | if ($this->object && $this->getUser() && !$this->invokedWillRenderEvent) { | ||||
'view' => $this, | 'view' => $this, | ||||
)); | )); | ||||
$event->setUser($this->getUser()); | $event->setUser($this->getUser()); | ||||
PhutilEventEngine::dispatchEvent($event); | PhutilEventEngine::dispatchEvent($event); | ||||
} | } | ||||
$this->invokedWillRenderEvent = true; | $this->invokedWillRenderEvent = true; | ||||
} | } | ||||
public function isEmpty() { | |||||
$this->invokeWillRenderEvent(); | |||||
if ($this->parts) { | |||||
return false; | |||||
} | |||||
return true; | |||||
} | |||||
public function render() { | public function render() { | ||||
$this->invokeWillRenderEvent(); | $this->invokeWillRenderEvent(); | ||||
require_celerity_resource('phui-property-list-view-css'); | require_celerity_resource('phui-property-list-view-css'); | ||||
$items = array(); | $items = array(); | ||||
$parts = $this->parts; | $parts = $this->parts; | ||||
▲ Show 20 Lines • Show All 168 Lines • Show Last 20 Lines |