/[drupal]/contributions/modules/views_datasource/views_json.views.inc
ViewVC logotype

Log of /contributions/modules/views_datasource/views_json.views.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Links to HEAD: (view) (download) (as text) (annotate)
Sticky Tag:

Revision 1.1.2.5 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Nov 16 04:44:18 2009 UTC (10 days, 1 hour ago) by allisterbeharry
Branch: DRUPAL-6--1
Changes since 1.1.2.4: +0 -0 lines
Diff to previous 1.1.2.4 , to branch point 1.1
Patch by icylace: http://drupal.org/node/627384#comment-2257878
   1. Rewrote the JSON renderer. A preprocess step for making MIT Simile/Exhibit JSON has been added to streamline rendering. json_encode() will be used if it's available otherwise rendering will be done based on code from the drupal_to_js() Drupal core function. This allows for all data types including nested objects and arrays to be encoded properly. Preview rendering will be done using a more hacked version of the code from drupal_to_js() to allow for pretty-printing.
   2. Reorganized the style settings screen.
   3. Changed to the array form of str_replace() in views_json_encode_special_chars().
   4. Empty fields are now included. I don't know why they were originally excluded.
   5. Now using the "application/json" content type.
   6. Renamed views_json_get_json() to views_json_get(). It now returns an object by default and also has an optional parameter to return the raw JSON string.

      1. Renamed views_json_strip_illegal_chars() to views_json_check_label(). It's less of a misnomer and more informative of its intended use.
   2. Corrected function comments for views_json_check_label().
   3. Using views_json_check_label() on object labels as it should be.

Revision 1.1.2.4 - (view) (download) (as text) (annotate) - [select for diffs]
Sun Nov 1 23:53:41 2009 UTC (3 weeks, 3 days ago) by allisterbeharry
Branch: DRUPAL-6--1
Changes since 1.1.2.3: +20 -16 lines
Diff to previous 1.1.2.3 , to branch point 1.1
Patch by icylake: http://drupal.org/files/issues/views_datasource_alpha3_003.patch
I love this module so much that I've taken the time to improve the formatting and commenting of it according to the recommendations of the Coder and Coder Tough Love modules. This patch just focuses on spacing adjustments, some comment changes, and a couple minor formatting tweaks. This is the first time I've made and submitted a patch. So, hopefully I'm doing this right !

#!
The first update was to pretty-print the JSON output when previewing it in the Views UI. The decorative and unnecessary whitespacing used in the preview will be absent when the output is retrieved outside of the Views UI.
#2
I wanted to be able to access a JSON'd view in code through the Views API without having the script terminating prematurely. The original style options wouldn't allow for this so I added "coder" variants of the original options to the style settings.

The style settings box for "JSON data document" now looks like this:
- Simple
- Simple (Coder)
- MIT Simile/Exhibit
- MIT Simile/Exhibit (Coder)

1. An improved method for placing commas between fields that takes into account empty fields that get skipped over.
2. Views UI previewing wraps the JSON preview within a tag and also formats HTML values to be displayed as regular text.
3. A much-improved views_json_get_json() function that is leaner and hopefully bug-free

Revision 1.1.2.3 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Sep 8 16:37:48 2009 UTC (2 months, 2 weeks ago) by allisterbeharry
Branch: DRUPAL-6--1
CVS Tags: DRUPAL-6--1-0-ALPHA3
Changes since 1.1.2.2: +3 -33 lines
Diff to previous 1.1.2.2 , to branch point 1.1
Plugins now compatible with Views 2.
Removed dependency on unformatted row plugin.

Revision 1.1.2.2 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Oct 20 08:52:48 2008 UTC (13 months ago) by allisterbeharry
Branch: DRUPAL-6--1
Changes since 1.1.2.1: +1 -82 lines
Diff to previous 1.1.2.1 , to branch point 1.1
Removed dependency on unformatted row plugin.

Revision 1.1.2.1 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Jul 8 19:43:38 2008 UTC (16 months, 2 weeks ago) by allisterbeharry
Branch: DRUPAL-6--1
CVS Tags: DRUPAL-6--1-0-ALPHA2
Changes since 1.1: +5 -5 lines
Diff to previous 1.1
Added fix for live preview, misc fixes, updated README.

Revision 1.1.4.1
Mon Jun 2 20:25:26 2008 UTC (17 months, 3 weeks ago) by allisterbeharry
Branch: DRUPAL-5
Changes since 1.1: +0 -0 lines
FILE REMOVED
Committed alpha release of Views JXML to Drupal-5 branch.

Revision 1.1 - (view) (download) (as text) (annotate) - [select for diffs]
Sun May 25 05:54:02 2008 UTC (18 months ago) by allisterbeharry
Branch: MAIN
CVS Tags: DRUPAL-5--1-0-branch, DRUPAL-6--1-0-ALPHA1, HEAD
Branch point for: DRUPAL-5, DRUPAL-6--1
CVS module created and intial code uploaded to repository.

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Sort log by:

  ViewVC Help
Powered by ViewVC 1.1.2