This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<!-- | |
Transform dia UML objects to a convenient structure | |
Copyright(c) 2002 Matthieu Sozeau <[email protected]> | |
Copyright(c) 2004 Dave Klotzbach <[email protected]> | |
This program is free software; you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation; either version 2 of the License, or |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var SimplxStudio = {}; | |
SimplxStudio.modx = {}; | |
/* Creating JSON representation for modAccess */ | |
SimplxStudio.modx.modAccess={ | |
"class": "modAccess", | |
"extends":"xPDOSimpleObject", | |
"fields": [ | |
"id","alias","target","principal_class","principal","authority","policy" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
interface ISimplxHTTPProxy{ | |
public function setBaseURL($url); | |
public function setServiceURI($uri); | |
public function login($usn,$psw); | |
public function logout(); | |
public function get($res,$data); | |
public function post($res,$data); | |
public function patch($res,$data); | |
public function put($res,$data); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"model":{ | |
"modx":{} | |
,"modChunk":{ | |
"class": "modChunk", | |
"extends":"modElement", | |
"fields": [ | |
{ | |
"name": "id", | |
"type": "int" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$active_processes = array(); | |
$parse_error = false; | |
/* | |
Abstract the Request Object by assigning it to a "proxy". | |
Note the force_get property which may force the Resource id and Routing Table actions to | |
be taken from the QueryString. | |
*/ | |
if($_SERVER['REQUEST_METHOD'] == 'POST' && $force_get != '1'){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$method = $_SERVER | |
['REQUEST_METHOD']; | |
$request = explode("/ ", | |
substr(@$_SERVER | |
['PATH_INFO'], 1)); | |
switch ($method) { | |
case 'PUT': | |
rest_put($request ); | |
break; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
interface ISimplxRestProxy{ | |
public function setServiceURI($uri); | |
public function login($usn,$psw); | |
public function logout(); | |
public function get($res,$data); | |
public function post($res,$data); | |
public function patch($res,$data); | |
public function put($res,$data); | |
public function delete($res,$data); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | |
<html> | |
<head/> | |
<body class="xPDOObject" data-package="modx"> | |
<form class="modAccess" name="modAccess"> | |
<input type="hidden" name="class" value="modAccess"/> | |
<input type="hidden" name="extends" value="xPDOSimpleObject"/> | |
<input type="hidden" name="id" value=""/> | |
<fieldset> | |
<legend>modAccess</legend> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | |
<html> | |
<head/> | |
<body> | |
<dl class="xPDOObject" data-package="modx" data-=""> | |
<dt class="modAccess" data-extends="xPDOSimpleObject">modAccess</dt> | |
<dd> | |
<dl> | |
<dt data-fields="fields">fields</dt> | |
<dd> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Orginally by cginzel at the Sencha Forums | |
http://www.sencha.com/forum/member.php?20865-cginzel | |
I'm playing with NodeJS and Connect which has an JSONRPC provider and so I managed to coble this proxy and reader together that I was able to successfully use to retrieve data into a grid. But I'm moving onto building an Ext.Direct provider instead so it'll be easier to build out the GUI. But for posterity's sake, I thought I'd post this code here just in case anyone else might find it useful. | |
I don't intend to support it, so use it at your own risk! |