add support for articles (with HTML)
[shpub.git] / src / shpub / Config / Host.php
index 5dd23ddf0b7b316fe8aa4dd2eff592a2c7edc80b..51d0ff59650a770a4d1f9c38283809549ff401ba 100644 (file)
@@ -37,5 +37,20 @@ class Config_Host
      * @var boolean
      */
     public $default;
+
+    public function __construct()
+    {
+        $this->endpoints = new Config_Endpoints();
+    }
+
+    public function loadEndpoints()
+    {
+        $this->endpoints = new Config_Endpoints();
+        $this->endpoints->load($this->server);
+        if ($this->endpoints->incomplete()) {
+            $this->endpoints->discover($this->server);
+            $this->endpoints->save($this->server);
+        }
+    }
 }
 ?>