/**
  * Get singleton instance of class
  *
  * @return null|DABBA_WS_Webservice_get_posts
  */
 public static function get()
 {
     if (self::$instance == null) {
         self::$instance = new self();
     }
     return self::$instance;
 }
Beispiel #2
0
 /**
  * Initialize class
  */
 private function init()
 {
     // Setup Rewrite Rules
     DABBA_API_Rewrite_Rules::get();
     // Default webservice
     DABBA_API_Web_services::get();
     if (is_admin()) {
         // Backend
         // Setup settings
         DABBA_API_Settings::get();
     } else {
         // Frondend
         // Catch request
         DABBA_API_Catch_Request::get();
     }
 }