ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilJsonUtil Class Reference

JSON (Javascript Object Notation) functions with backward compatibility for PHP version < 5.2. More...

+ Collaboration diagram for ilJsonUtil:

Static Public Member Functions

static encode ($mixed, $suppress_native=false)
 
static decode ($json_notated_string, $suppress_native=false)
 

Detailed Description

JSON (Javascript Object Notation) functions with backward compatibility for PHP version < 5.2.

Author
Jan Posselt jposs.nosp@m.elt@.nosp@m.datab.nosp@m.ay.d.nosp@m.e
Version
$Id$
Deprecated:
use PHP native functions

Definition at line 13 of file class.ilJsonUtil.php.

Member Function Documentation

◆ decode()

static ilJsonUtil::decode (   $json_notated_string,
  $suppress_native = false 
)
static
Parameters
$json_notated_string
bool$suppress_native
Returns
mixed
Deprecated:
use json_decode instead

Definition at line 36 of file class.ilJsonUtil.php.

Referenced by ilPageQuestionProcessor\saveQuestionAnswer().

37  {
38  return json_decode($json_notated_string);
39  }
+ Here is the caller graph for this function:

◆ encode()

static ilJsonUtil::encode (   $mixed,
  $suppress_native = false 
)
static
Parameters
$mixed
bool$suppress_native
Returns
string
Deprecated:
use json_encode instead

Definition at line 23 of file class.ilJsonUtil.php.

Referenced by ilTermsOfServiceJsonResponse\__toString(), ilCloudPluginFileTreeGUI\addDropZone(), ilCloudPluginCreateFolderGUI\asyncCreateFolder(), ilCloudPluginDeleteGUI\asyncDeleteItem(), ilObjCloudGUI\asyncGetBlock(), ilCloudPluginUploadGUI\asyncUploadFile(), ilCloudPluginCreateFolderGUI\cancel(), ilCloudPluginDeleteGUI\cancel(), ilCloudPluginCreateFolderGUI\createFolder(), ilCloudPluginDeleteGUI\deleteItem(), ilAccountRegistrationGUI\doProfileAutoComplete(), ilPublicUserProfileGUI\doProfileAutoComplete(), ilRepositorySearchGUI\doUserAutoComplete(), ilStudyProgrammeExpandableProgressListGUI\fillTemplate(), ilChatroomBlockGUI\getChatroomSelectionList(), ilFileUploadGUI\getHTML(), ilAccordionGUI\getHTML(), ilAdvancedSelectionListGUI\getHTML(), ilDataSet\getJsonRepresentation(), ilRoleAutoComplete\getList(), ilSearchAutoComplete\getList(), ilRoleAutoComplete\getListByObject(), ilSearchAutoComplete\getLuceneList(), ilOnScreenChatMenuGUI\getMainMenuHTML(), ilOverlayGUI\getOnLoadCode(), ilPreviewGUI\getPreviewHTML(), ilObjWikiGUI\getUserHTMLExportProgressObject(), ilBuddySystemGUI\initializeFrontend(), ilWikiPageGUI\insertWikiLinkAC(), ilMDEditorGUI\keywordAutocomplete(), ilBlogPostingGUI\keywordAutocomplete(), ilNewsTimelineGUI\loadMore(), ilMailTemplateSelectInputGUI\render(), ilUserAutoComplete\setResultField(), ilNewsTimelineGUI\show(), ilLanguage\toJSMap(), and ilCloudPluginUploadGUI\uploadFiles().

24  {
25  return json_encode($mixed);
26  }
+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: