OC_API¶
-
class
OC_API
¶ Source: lib/private/legacy/OC_API.php#34
Properties¶
-
protected property
OC_API::$
actions
¶ - api actions
Source: lib/private/legacy/OC_API.php#39
Methods¶
-
public static
OC_API::
respond
($result, $format=xml)¶ - respond to a call
Source: Parameters: - $result (
OC\OCS\Result
) - $format (string) the format xml|json
- $result (
-
public static
OC_API::
requestedFormat
()¶ Source: lib/private/legacy/OC_API.php#104 Returns: string
-
public static
OC_API::
setContentType
($format=\null)¶ - Based on the requested format the response content type is set
Source: Parameters: - $format (string)
-
protected static
OC_API::
isV2
($request)¶ Source: Parameters: - $request (
OCP\IRequest
)
Returns: bool
- $request (
-
public static
OC_API::
mapStatusCodes
($sc)¶ Source: Parameters: - $sc (int)
Returns: int
-
public static
OC_API::
renderResult
($format, $meta, $data)¶ Source: Parameters: - $format (string)
Returns: string