src/Admin/AdminPageHelper.php
public function addSetting($name, $label, $renderer = null, $args = null, $default = null)
    {
        if (!$renderer)
            $renderer = array($this, 'createSettingsTextbox');
        $this->settings[] = array('name' => $name, 'label' => $label, 'renderer' => $renderer,
            'args' => $args, 'default' => $default);
    }
public function addSetting($name, $label, $renderer = null, $args = null, $default = null)
    {
        if (!$renderer)
            $renderer = array($this, 'createSettingsTextbox');
        $this->settings[] = array('name' => $name, 'label' => $label, 'renderer' => $renderer,
            'args' => $args, 'default' => $default);
    }
public function addSetting ( $ name , $ label , $ renderer = null , $ args = null , $ default = null ) { if ( ! $ renderer ) $ renderer = array ( $ this , 'createSettingsTextbox' ) ; $ this -> settings [ ] = array ( 'name' => $ name , 'label' => $ label , 'renderer' => $ renderer , 'args' => $ args , 'default' => $ default ) ; }
Register a new setting

@param string $name
@param string $label
@param callable $renderer
@param array $args
@param mixed $default - a default value for the setting
Register a new setting