Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 15249f0e32
Fetching contributors…

Cannot retrieve contributors at this time

executable file 18 lines (13 sloc) 0.572 kb
<?php
require_once(dirname(__FILE__).'/Outline.php');
require_once(dirname(__FILE__).'/JSON.php');//requires JSON-PHP
class OutlineFromJSON extends Outline {
function __construct($data='',$options=array()) {
$json = new Services_JSON(SERVICES_JSON_LOOSE_TYPE);
$phpobj2 = $json->decode($data);
parent::__construct($phpobj2);
$options['itemel'] = $options['itemel'] ? strtolower($options['itemel']) : '';
$this->nodesFromField($options['itemel'],true);
}//end constructor
}//end class OutlineFromJSON
?>
Jump to Line
Something went wrong with that request. Please try again.