/**
  * Gets the value of a user option they have set.
  *
  * @uses WP_Buoy_User_Settings::get()
  *
  * @param string $name
  * @param mixed $default
  *
  * @return mixed
  *
  * @access private
  */
 private function get_option($name, $default = null)
 {
     return $this->_options->get($name, $default);
 }
 /**
  * Enqueues the "webapp/native" installer scripts if the user has
  * not previously dismissed this functionality.
  *
  * @uses get_current_user_id()
  * @uses WP_Buoy_User_Settings::get()
  * @uses wp_enqueue_script
  * @uses wp_enqueue_style
  *
  * @return void
  */
 public static function addInstallerScripts()
 {
     $usropt = new WP_Buoy_User_Settings(get_current_user_id());
     if (!$usropt->get('installer_dismissed')) {
         wp_enqueue_script(self::$prefix . '-install-webapp', plugins_url('includes/install-webapp.js', __FILE__), array('jquery'));
         wp_enqueue_style(self::$prefix . '-install-webapp', plugins_url('includes/install-webapp.css', __FILE__));
     }
 }
 /**
  * Checks whether or not this team is the user's default team.
  *
  * @uses WP_Buoy_User_Settings::get()
  *
  * @return bool
  */
 public function is_default()
 {
     $usropt = new WP_Buoy_User_Settings($this->author->ID);
     return $this->wp_post->ID == $usropt->get('default_team');
 }