public function BackendName() { $result = 'html'; if (!$this->content) { return $result; } $html = ContentHtml::Schema()->ByContent($this->content); $text = Text::Shorten($html->GetHtml()); if ($text) { return $result . ' - ' . $text; } else { if ($this->content->GetCssID()) { return $result . ' #' . $this->content->GetCssID(); } else { if ($this->content->GetCssClass()) { return $result . ' .' . $this->content->GetCssClass(); } } } return $result; }
/** * Gets the content html schema * @return \Phine\Database\BuiltIn\ContentHtmlSchema */ protected function ElementSchema() { return ContentHtml::Schema(); }