<?PHP

/* RDFInt.php - RDF Interfaces for PHP
 * Copyright 2011 netlabs.org
 * Author: Christian Langanke, Adrian Gschwend
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */


/* Dummy interface for fDebug
 *
 * To activate log output
 *  - download fDebug server code (fdebug.lib.php) from www.fdebug.de
 *  - define environment variable PHP_LIBROOT_FDEBUG with the pathname
 *    of the directory containing fdebug.lib.php
 *    NOTE: Under Windowws make sure to use unix filename convention:
 *          use slashes instad of backslashes!
 *  - install fDebug Firefox Client Plugin from www.fdebug.de
 *    and active fDebug window
 */

class fDebug {

  protected static $instance = null;

  public static function getInstance() {
     if (self::$instance == null) {
        self::$instance = new fDebug();
     }
     return self::$instance;
  }
  
  public function setSession($host, $url) {}
  public function openSocket($remote, $port = 5005) {}
  public function openProxy($uuid, $proxy, $port = 5005) {}
  public function connectRemote($remote, $port) {}
  public function sendHelo() {}
  public function openFile($fname) {}
  public function closeSocket() {}
  public function isConnected() {}
  public function hasSession() {}
  protected function writeSocket($type, Array $payload) {}
  protected function writeFile($payload) {}
  public function setSource($source) {}
  public function hasSource() {}
  public function registerVariable(&$var,$key='') {}
  public function sendVariables(Array $dumpAdd = array()) {}
  public function setContext($context = null) {}
  public function resetContext() {}
  public function enableAutoContext() {}
  public function disableAutoContext() {}
  public function sendDebug($msg) {}
  public function sendMessage($msg, $context = null) {}
  public function sendWarning($msg, $context = null) {}
  public function sendError($msg, $context = null) {}
  public function sendFatal($msg, $context = null) {}
  protected function handleMessage($msg, $level, $context = null) {}
  public function sendSource($xml=null) {}
  public function setContextFilter( $newContextFilter=null) {}
}

?>