Permalink
Browse files

Added enable and disable methods

  • Loading branch information...
1 parent faec97d commit 8e5b88822cfb17aadc186e920abe8a8268ecf175 @brucespang committed Sep 26, 2010
Showing with 19 additions and 1 deletion.
  1. +19 −1 frank/library.php
View
@@ -58,7 +58,25 @@ function set($options){
foreach($options as $option => $value)
settings::set($option, $value);
}
-
+
+ /**
+ * Sets a setting to true
+ *
+ * @param string $setting Name of setting
+ */
+ function enable($setting){
+ settings::set($setting, true);
+ }
+
+ /**
+ * Sets a setting to false
+ *
+ * @param string $setting Name of setting
+ */
+ function disable($setting){
+ settings::set($setting, false);
+ }
+
/**
* API for adding a template function
*

0 comments on commit 8e5b888

Please sign in to comment.