OC_JSON¶
-
class
OC_JSON
¶ - Class OC_JSON
Source: lib/private/legacy/OC_JSON.php#35
Methods¶
-
public static
OC_JSON::
checkAppEnabled
($app)¶ - Check if the app is enabled, send json error msg if not
Source: Parameters: - $app (string)
Deprecated: Use the AppFramework instead. It will automatically check if the app is enabled.
-
public static
OC_JSON::
checkLoggedIn
()¶ - Check if the user is logged in, send json error msg if not
Source: lib/private/legacy/OC_JSON.php#56 Deprecated: Use annotation based ACLs from the AppFramework instead
-
public static
OC_JSON::
callCheck
()¶ - Check an ajax get/post call if the request token is valid, send json error msg if not.
Source: lib/private/legacy/OC_JSON.php#72 Deprecated: Use annotation based CSRF checks from the AppFramework instead
-
public static
OC_JSON::
checkAdminUser
()¶ - Check if the user is a admin, send json error msg if not.
Source: lib/private/legacy/OC_JSON.php#90 Deprecated: Use annotation based ACLs from the AppFramework instead
-
public static
OC_JSON::
error
($data=[])¶ - Send json error msg
Source: lib/private/legacy/OC_JSON.php#104 Deprecated: Use a AppFramework JSONResponse instead
-
public static
OC_JSON::
success
($data=[])¶ - Send json success msg
Source: lib/private/legacy/OC_JSON.php#116 Deprecated: Use a AppFramework JSONResponse instead
-
protected static
OC_JSON::
to_string
(&$value)¶ - Convert OC_L10N_String to string, for use in json encodings
Source: lib/private/legacy/OC_JSON.php#125
-
public static
OC_JSON::
encode
($data)¶ - Encode JSON
Source: lib/private/legacy/OC_JSON.php#135 Deprecated: Use a AppFramework JSONResponse instead