Login   Register  
PHP Classes
elePHPant
Icontem

File: src/php/Netcrash/Groupon/example/jsonexamples/sedDivision.sh

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Fernando André  >  Groupon API Client  >  src/php/Netcrash/Groupon/example/jsonexamples/sedDivision.sh  >  Download  
File: src/php/Netcrash/Groupon/example/jsonexamples/sedDivision.sh
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Groupon API Client
Get deal information from Groupon using its API
Author: By
Last change:
Date: 2012-02-12 13:29
Size: 269 bytes
 

Contents

Class file image Download
cat tDivision.json | grep -i "\[" | sed -e 's/\[\|\]\|=\|\\\|>\|"\| \+//gi' | sed 's/\([a-z]\)\([a-zA-Z0-9]*\)/\u\1\2/g'  | awk ' { print "private $"$1";\n\npublic function set"$1"(\$val) { $this->"$1" = $val;}\npublic function get"$1"() { return $this->"$1"; }\n" }'