# Utility functions for handling text settings
static public negative ( $f, $setting ) |
function hardcode($what) { $default = get_option("feedwordpress_hardcode_{$what}"); if ($default === 'yes') { // If the default is to hardcode, then we want the // negation of negative(): TRUE by default and FALSE if // the setting is explicitly "no" $ret = !FeedWordPress::negative($this->settings, "hardcode {$what}"); } else { // If the default is NOT to hardcode, then we want // affirmative(): FALSE by default and TRUE if the // setting is explicitly "yes" $ret = FeedWordPress::affirmative($this->settings, "hardcode {$what}"); } return $ret; }