name = $name; $this->desc = $desc; $this->tips = str_replace('
', '
', $tips); $this->syntax = $syntax; $this->example = $example; } function render($key, $blocked_reason='') { $key = str_replace(array(':','_'), '', $key ); $buf = '' . '
' . $this->name . '' ; if ($blocked_reason) { $buf .= " $blocked_reason"; } $buf .= '
' . $this->desc . '

'; if ($this->syntax) { $buf .= 'Syntax: ' . $this->syntax . '

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

'; } if ($this->tips) { $buf .= 'Tip(s):'; } $buf .= '
'; return $buf; } function render0($key, $blocked_version=0) { $key = str_replace(array(':','_'), '', $key ); $buf = '' . '
' . $this->name . '' ; switch ($blocked_version) { case 0: break; case 1: // LSWS ENTERPRISE; $buf .= ' This feature is available in Enterprise Edition'; break; case 2: // LSWS 2CPU + case 3: // LSLB 2CPU + $buf .= ' This feature is available for Multiple-CPU license'; break; //case 4: // NCPU // $buf .= ' This feature is available for Unlimited-CPU license'; // break; } $buf .= '
' . $this->desc . '

'; if ($this->syntax) { $buf .= 'Syntax: ' . $this->syntax . '

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

'; } if ($this->tips) { $buf .= 'Tip(s):'; } $buf .= '
'; return $buf; } }