setHelp() public method

Assigns a help text to this variable.
public setHelp ( string $help )
$help string The variable help text.
Beispiel #1
0
 public function __construct($vars, $title = '', $name = null)
 {
     parent::__construct($vars, $title, $name);
     $v = $this->addVariable(_("Spam Level:"), 'level', 'int', true, false, _("Messages with a likely spam score greater than or equal to this number will be treated as spam."));
     $v->setHelp('spam-level');
     $this->folder_var = $this->addVariable(_("Folder to receive spam:"), 'folder', 'ingo_folders', true);
     $this->folder_var->setHelp('spam-folder');
     $this->addHidden('', 'actionID', 'text', false);
     $this->addHidden('', 'folder_new', 'text', false);
     $this->setButtons(_("Save"));
 }
Beispiel #2
0
 public function __construct($vars, $title = '', $name = null, $features = null)
 {
     parent::__construct($vars, $title, $name, $features);
     $this->setSection('basic', _("Basic Settings"));
     if ($this->hasFeature('period')) {
         $this->_start = $this->addVariable(_("Start of vacation:"), 'start', 'monthdayyear', false);
         $this->_start->setHelp('vacation-period');
         $this->_end = $this->addVariable(_("End of vacation:"), 'end', 'monthdayyear', false);
     }
     if ($this->hasFeature('subject')) {
         $v = $this->addVariable(_("Subject of vacation message:"), 'subject', 'text', true);
         $v->setHelp('vacation-subject');
     }
     if ($this->hasFeature('reason')) {
         $v = $this->addVariable(_("Reason:"), 'reason', 'longtext', true, false, _("You can use placeholders like %NAME% in the vacation message. See the online help for details."), array(10, 40));
         $v->setHelp('vacation-reason');
     }
     if ($this->hasFeature('addresses') || $this->hasFeature('excludes') || $this->hasFeature('ignorelist') || $this->hasFeature('days')) {
         $this->setSection('advanced', _("Advanced Settings"));
         if ($this->hasFeature('addresses')) {
             $v = $this->addVariable(_("My email addresses:"), 'addresses', 'ingo:Longemail', true, false, null, array(5, 40));
             $v->setHelp('vacation-myemail');
         }
         if ($this->hasFeature('excludes')) {
             $v = $this->addVariable(_("Addresses to not send responses to:"), 'excludes', 'ingo:Longemail', false, false, null, array(10, 40));
             $v->setHelp('vacation-noresponse');
         }
         if ($this->hasFeature('ignorelist')) {
             $v = $this->addVariable(_("Do not send responses to bulk or list messages?"), 'ignorelist', 'boolean', false);
             $v->setHelp('vacation-bulk');
         }
         if ($this->hasFeature('days')) {
             $v = $this->addVariable(_("Number of days between vacation replies:"), 'days', 'int', false);
             $v->setHelp('vacation-days');
         }
         $this->setButtons(_("Save"));
     }
 }