Example #1
0
 function displayContent($element = "", $putWhiteSpace = 0)
 {
     global $contentSeparator;
     if (!$element) {
         $view =& View::getContentView();
     } else {
         $view =& View::getView($element);
     }
     if (!$view->getEmpty() && ($putWhiteSpace == putWhiteSpaceAbove || $putWhiteSpace == putWhiteSpaceAboveAndBelow)) {
         echo $contentSeparator;
     }
     $view->displayContent();
     if (!$view->getEmpty() && ($putWhiteSpace == putWhiteSpaceBelow || $putWhiteSpace == putWhiteSpaceAboveAndBelow)) {
         echo $contentSeparator;
     }
 }
Example #2
0
 function showDetails($whereFields = "", $withLoad = TRUE, $elementName = "")
 {
     global $gorumroll;
     if ($withLoad) {
         //A gorumroll->rollid-bol,vagy id, vagy name jon attol fuggoen,
         //hogy egyszeru showDetailsrol, vagy showUserLinkrol van-e szo:
         $this->{$whereFields} = $gorumroll->rollid;
         $ret = $this->load(array($whereFields));
         if ($ret == not_found_in_db) {
             return Roll::setInfoText("not_found_deleted");
         }
     }
     $detailsPresentationClassName = G::getSetting($this->getTypeInfo(TRUE), "detailsPresentationClassName");
     $temp =& new $detailsPresentationClassName($this);
     $view =& View::getContentView();
     return $temp->gener($view->addElement($elementName));
 }
Example #3
0
 function &getElementTemplate($name)
 {
     $view =& View::getContentView();
     return $view->elements[$name]->tpl;
 }