Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diviner/atom/DivinerAtom.php
| Show First 20 Lines • Show All 279 Lines • ▼ Show 20 Lines | public function addChild(DivinerAtom $atom) { | ||||
| $atom->setParent($this); | $atom->setParent($this); | ||||
| $this->children[] = $atom; | $this->children[] = $atom; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| public function getURI() { | public function getURI() { | ||||
| $parts = array(); | $parts = array(); | ||||
| $parts[] = 'diviner'; | |||||
| $parts[] = phutil_escape_uri_path_component($this->getType()); | $parts[] = phutil_escape_uri_path_component($this->getType()); | ||||
| if ($this->getContext()) { | if ($this->getContext()) { | ||||
| $parts[] = phutil_escape_uri_path_component($this->getContext()); | $parts[] = phutil_escape_uri_path_component($this->getContext()); | ||||
| } | } | ||||
| $parts[] = phutil_escape_uri_path_component($this->getName()); | $parts[] = phutil_escape_uri_path_component($this->getName()); | ||||
| $parts[] = null; | $parts[] = null; | ||||
| return implode('/', $parts); | return implode('/', $parts); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 140 Lines • Show Last 20 Lines | |||||