예제 #1
0
 /**
  * action show
  *
  * @param Term $term
  * @param integer $pageUid
  * @return void
  */
 public function showAction(Term $term, $pageUid = NULL)
 {
     $pageUid = FALSE === empty($pageUid) ? $pageUid : FALSE;
     if ('pagination' === $this->settings['listmode']) {
         $this->view->assign('paginateLink', PaginateController::paginationArguments($term->getName(), $this->settings['pagination']['characters']));
     }
     $this->view->assign('pageUid', $pageUid);
     $this->view->assign('listPage', $this->settings['listPage']);
     $this->view->assign('term', $term);
 }
예제 #2
0
 /**
  * Renders the wrapped term using the plugin settings
  *
  * @param \Dpn\DpnGlossary\Domain\Model\Term
  * @return string
  */
 protected function termWrapper(Term $term)
 {
     // get content object type
     $contentObjectType = $this->tsConfig['settings.']['termWraps'];
     // get term wrapping settings
     $wrapSettings = $this->tsConfig['settings.']['termWraps.'];
     // pass term data to the cObject pseudo constructor
     $this->cObj->start($term->toArray());
     // return the wrapped term
     return $this->cObj->cObjGetSingle($contentObjectType, $wrapSettings);
 }