/**
  * Sets the configuration for this class. Should be called statically
  * in the bootstrap so the helper is configured once for every time it
  * is used.
  *
  * @param Array $config An array with the following config options:
  * - ip
  * - timeout
  * - port
  * - enabled
  *
  * @throws Zend_Controller_Action_Exception if the class has already
  * been configured
  */
 public static function setConfig(array $config)
 {
     if (!empty(self::$_config)) {
         /**
          * @see Zend_Controller_Action_Exception
          */
         require_once 'Zend/Controller/Action/Exception.php';
         throw new Zend_Controller_Action_Exception("class has already been configured");
     }
     self::$_config = $config;
 }