public function __construct($id, $labels, $callback = null, $capability = null, $icon = null, $position = null)
 {
     // Default
     parent::__construct($id, $labels, $callback, $capability, $icon);
     // Class specific
     $this->set_position($position);
     return $this;
 }
 /**
  * Retrieve URI
  * @uses Admin_View::get_uri()
  * @param string $file (optional) Base file name
  * @param string $format (optional) String format
  * @return string Section URI
  */
 public function get_uri($file = null, $format = null)
 {
     if (!is_string($file)) {
         $file = 'options-' . $this->get_parent() . '.php';
     }
     if (!is_string($format)) {
         $format = '%1$s#%2$s';
     }
     return parent::get_uri($file, $format);
 }
 /**
  * Save options
  */
 public function add_content($id, $data)
 {
     return parent::add_content($id, array('data' => $data));
 }
 /**
  * Add content to page
  * @uses parent::add_content()
  * @param string $id Module ID
  * @param string $title Module title
  * @param mixed $callback Callback method or other data for building module UI
  * @param string $context (optional) Context to add module to (Default: primary)
  * @param string $priority (optional) Controls module ordering (Default: default)
  * @param array $callback_args (optional) Additional data to pass callback (Default: NULL)
  * @return object Page instance reference
  */
 public function add_content($id, $title, $callback = null, $context = 'primary', $priority = 'default', $callback_args = null)
 {
     return parent::add_content($id, array('id' => $id, 'title' => $title, 'callback' => $callback, 'context' => $context, 'priority' => $priority, 'callback_args' => $callback_args));
 }