label) == '') $this->label = $this->action->getLabel (); } public function makeIcon ($itemId, $forceDisable = FALSE) { if (!$this->accessible || $forceDisable) return ''; return 'makeLink ($itemId) .' onclick="JavaScript: showWait ();">'. $this->label .''; } public function makeLink ($itemId, $forceDisable = FALSE) { if (!$this->accessible || $forceDisable) return 'href="#"'; $vars = ''; $section = Business::singleton ()->getSection (Section::TCURRENT); if ($this->section->getName () != $section->getName ()) $vars .= '&fatherId='. $itemId; foreach ($this->variables as $trash => $var) { $var = trim ($var); global $$var; $vars .= '&'. $var .'='. $$var; } return 'href="titan.php?target=body&toSection='. $this->section->getName () .'&toAction='. $this->action->getName () .'&itemId='. $itemId . $vars .'"'; } } ?>