/** * @param class_model $objListEntry * @param string $strAltActive tooltip text for the icon if record is active * @param string $strAltInactive tooltip text for the icon if record is inactive * * @return string */ protected function renderStatusAction(class_model $objListEntry, $strAltActive = "", $strAltInactive = "") { if ($objListEntry instanceof class_module_system_module) { return ""; } return parent::renderStatusAction($objListEntry, $strAltActive, $strAltInactive); }
/** * @param class_model $objListEntry * @param string $strAltActive tooltip text for the icon if record is active * @param string $strAltInactive tooltip text for the icon if record is inactive * * @return string */ protected function renderStatusAction(class_model $objListEntry, $strAltActive = "", $strAltInactive = "") { if ($objListEntry instanceof class_module_workflows_handler) { return ""; } if ($objListEntry instanceof class_module_workflows_workflow) { $strStatusIcon = ""; if ($objListEntry->getIntState() == class_module_workflows_workflow::$INT_STATE_NEW) { $strStatusIcon = class_adminskin_helper::getAdminImage("icon_workflowNew", $this->getLang("workflow_status_" . $objListEntry->getIntState())); } if ($objListEntry->getIntState() == class_module_workflows_workflow::$INT_STATE_SCHEDULED) { $strStatusIcon = class_adminskin_helper::getAdminImage("icon_workflowScheduled", $this->getLang("workflow_status_" . $objListEntry->getIntState())); } if ($objListEntry->getIntState() == class_module_workflows_workflow::$INT_STATE_EXECUTED) { $strStatusIcon = class_adminskin_helper::getAdminImage("icon_workflowExecuted", $this->getLang("workflow_status_" . $objListEntry->getIntState())); } if ($strStatusIcon != "") { return $this->objToolkit->listButton($strStatusIcon); } } return parent::renderStatusAction($objListEntry, $strAltActive, $strAltInactive); }
/** * @param class_model $objListEntry * @param string $strAltActive tooltip text for the icon if record is active * @param string $strAltInactive tooltip text for the icon if record is inactive * * @return string */ protected function renderStatusAction(class_model $objListEntry, $strAltActive = "", $strAltInactive = "") { if ($objListEntry instanceof class_module_pages_element) { return ""; } else { return parent::renderStatusAction($objListEntry, $strAltActive, $strAltInactive); } }