Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diviner/storage/DivinerLiveSymbol.php
Show First 20 Lines • Show All 176 Lines • ▼ Show 20 Lines | public function getTitle() { | ||||
} | } | ||||
return $title; | return $title; | ||||
} | } | ||||
public function setTitle($value) { | public function setTitle($value) { | ||||
$this->writeField('title', $value); | $this->writeField('title', $value); | ||||
if (strlen($value)) { | if (phutil_nonempty_string($value)) { | ||||
$slug = DivinerAtomRef::normalizeTitleString($value); | $slug = DivinerAtomRef::normalizeTitleString($value); | ||||
$hash = PhabricatorHash::digestForIndex($slug); | $hash = PhabricatorHash::digestForIndex($slug); | ||||
$this->titleSlugHash = $hash; | $this->titleSlugHash = $hash; | ||||
} else { | } else { | ||||
$this->titleSlugHash = null; | $this->titleSlugHash = null; | ||||
} | } | ||||
return $this; | return $this; | ||||
▲ Show 20 Lines • Show All 103 Lines • Show Last 20 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0