setConfig instead. * @todo Remove this class on next major bump of core/embed api. * * @package GalleryCore * @subpackage Classes * @author Alan Harder * @version $Revision: 17580 $ * @static * @deprecated */ class GalleryCapabilities { /** * Get a configuration value. * * @param string $key * @return string the configuration value or null if not found */ function get($key) { global $gallery; return $gallery->getConfig($key); } /** * Get a boolean configuration flag. * * @param string $key * @return boolean the configuration value or null if not found */ function can($key) { global $gallery; return (boolean)$gallery->getConfig($key); } /** * Set a configuration value. * * @param string $key * @param mixed $value (null to remove the value) */ function set($key, $value) { global $gallery; $gallery->setConfig($key, $value); } } ?>