Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phame/storage/PhamePost.php
Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | public function attachBlog(PhameBlog $blog) { | ||||
$this->blog = $blog; | $this->blog = $blog; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function getBlog() { | public function getBlog() { | ||||
return $this->assertAttached($this->blog); | return $this->assertAttached($this->blog); | ||||
} | } | ||||
public function getMonogram() { | |||||
return 'J'.$this->getID(); | |||||
} | |||||
public function getLiveURI() { | public function getLiveURI() { | ||||
$blog = $this->getBlog(); | $blog = $this->getBlog(); | ||||
$is_draft = $this->isDraft(); | $is_draft = $this->isDraft(); | ||||
$is_archived = $this->isArchived(); | $is_archived = $this->isArchived(); | ||||
if (strlen($blog->getDomain()) && !$is_draft && !$is_archived) { | if (strlen($blog->getDomain()) && !$is_draft && !$is_archived) { | ||||
return $this->getExternalLiveURI(); | return $this->getExternalLiveURI(); | ||||
} else { | } else { | ||||
return $this->getInternalLiveURI(); | return $this->getInternalLiveURI(); | ||||
▲ Show 20 Lines • Show All 306 Lines • Show Last 20 Lines |