getHosts() public static method

public static getHosts ( )
Example #1
0
 /**
  * Admin Settings Page.
  */
 public static function getSettings()
 {
     $hostsStatus = [];
     foreach (Config::getHosts() as $host) {
         $hostsStatus[] = Elasticsearch::ping($host);
     }
     require ESI_PATH . '/views/admin/settings.php';
 }
 /**
  * @param int|null $blogId
  */
 public function __construct($blogId = null)
 {
     $this->setBlog($blogId);
     return parent::__construct(['hosts' => Config::getHosts(), 'logging' => true, 'logPath' => Log::getFilePath('elasticsearch')]);
 }