OpenBroadcaster Documentation
classes / obfio.php

OBFIO

Class

Input/Output class. Outputs data and error messages.

public  &get_instance ( )

Create an instance of OBFIO or return the already-created instance.

Returns instance
public  error ( error_no )

Echo JSON encoded error message based on the error code. Errors include OB_ERROR_BAD_POSTDATA, OB_ERROR_BAD_CONTROLLER, OB_ERROR_BAD_DATA, and OB_ERROR_DENIED.

Parameters
error_no
public  output ( data )

JSON-encode data and echo it.

Parameters
data