name = $name; $this->desc = $desc; $this->tips = str_replace('
', '
', $tips); $this->syntax = $syntax; $this->example = $example; } public function Render($blocked_version=0) { $buf = ''; switch ($blocked_version) { case 0: break; case 1: // LSWS ENTERPRISE; $buf .= ' ' . DMsg::UIStr('note_entfeature') . ''; break; case 2: // LSWS 2CPU + case 3: // LSLB 2CPU + $buf .= ' ' . DMsg::UIStr('note_multicpufeature') . ''; break; } $buf .= $this->desc . '

'; if ($this->syntax) { $buf .= '' . DMsg::UIStr('note_syntax') . ': ' . $this->syntax . '

'; } if ($this->example) { $buf .= '' . DMsg::UIStr('note_example') . ': ' . $this->example . '

'; } if ($this->tips) { $buf .= '' . DMsg::UIStr('note_tips') . ':'; } $buf .= '\'>
'; return $buf; } }