예제 #1
0
 public function setCaption($caption)
 {
     parent::setCaption($caption);
     if ($this->getWikiPageValue() instanceof SMWDataValue) {
         // pass caption to embedded datavalue (used for printout)
         $this->m_wikipage->setCaption($caption);
     }
 }
 private function getDvShortHtmlText($subject, $linker = null)
 {
     $dataValue = new WikiPageValue('_wpg');
     $dataValue->setDataItem($subject);
     $dataValue->setCaption($subject->getTitle()->getSubpageText());
     return $dataValue->getShortHtmlText($linker);
 }