/**
  * Construct the WordPress setting.
  *
  * Set the page_slug where the settings sections should be located and the option name.
  * The option name is set to the same value as the option group if the optional third
  * parameter is omitted.
  *
  * @param string $page_slug
  * @param string $option_group
  * @param string $option_name
  * @return void
  */
 public function __construct($page_slug = null, $option_group = null, $option_name = null)
 {
     $this->page_slug = $page_slug;
     $this->option_group = $option_group;
     $this->option_name = is_null($option_name) ? $option_group : $option_name;
     $this->sections = array();
     if (!isset(self::$option_values)) {
         self::$option_values = array();
     }
     $this->register_actions();
 }