Esempio n. 1
0
 protected static function client()
 {
     if (self::$client) {
         return self::$client;
     }
     if (self::$client = new Elastica_Client(array('host' => self::$config['ip'], 'port' => self::$config['port']))) {
         return self::$client;
     }
     return null;
 }