protected static function initialize() { $bootstrap = Zend_Controller_Front::getInstance()->getParam('bootstrap'); $options = $bootstrap->getOptions(); if (!self::$_client) { $host = $options['hypertable']['thriftclient']['hostname']; $port = $options['hypertable']['thriftclient']['port']; self::$_client = new Hypertable_ThriftClient($host, $port); } if (!self::$_namespace) { $ns = $options['hypertable']['namespace']; self::$_namespace = self::$_client->open_namespace($ns); } }