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
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> | |
<xsl:output omit-xml-declaration="yes" /> | |
<xsl:output method="text" /> | |
<xsl:output indent="yes" /> | |
<xsl:output media-type="text/plain" /> | |
<xsl:param name="directory"/> | |
<xsl:param name="label-composite">Composites</xsl:param> | |
<xsl:param name="label-aggregate">Aggregates</xsl:param> |
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 | |
/* JSONPath 0.8.1 - XPath for JSON | |
* | |
* Copyright (c) 2007 Stefan Goessner (goessner.net) | |
* Licensed under the MIT (MIT-LICENSE.txt) licence. | |
*/ | |
// API function | |
function jsonPath($obj, $expr, $args=null) { | |
$jsonpath = new JsonPath(); |
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 | |
// First we require the xml2json file of course. | |
require_once($modx->getOption('core_path').'components/simplx/common/xml2json.php'); | |
// xml2json simply takes a String containing XML contents as input. | |
// Remember that the preprocessor always get a parameter called $dataSet | |
// containing the complete dataSet recieved from the dataSourceUrl or the | |
// dataSet Snippet parameter. |
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
SIMPLX Widgeteer 0.8.5 | |
UPDATE 120117 10:04 | |
Fixed a bug in the templateNSPlaceholder method thanks to Keith Baker :) | |
NEW FEAUTURES | |
If you use namespaced placeholders, you can now reference the first object in any list (array). This was not possible | |
before. This is going to be even easier later on as you are going to be able to query for objects using regex etc. |
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
* WELCOME TO THE SIMPLX MIRAGE EXPERIMENT! * | |
PURPOSE: | |
The idea behind this little project is to hide the quite quirky MODx notion that a Resource (or document) does not | |
"own" its extended properties. In MODx these are called Template Variables and, as the name suggests, they are | |
bound to one or more Templates. This means that the normal concept that a Template conforms to the data in an Object | |
is reversed. As a result, in MODx a Resource potentially "looses" properties when a user changes its Template. | |
I want a solid way of using the current MODx Template Variable concept to quickly build custom content types |
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
<script src="https://github.com/douglascrockford/JSON-js/raw/master/json2.js"> </script> | |
<script type="text/javascript"> | |
var simplx = new Object(); | |
simplx.jsonrpc = (function(){ | |
var response = null; | |
var self = this; | |
this.url=""; | |
this.host=""; |
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 | |
require_once($modx->getOption('core_path').'components/simplx/mygit/simplx.mygit.php'); | |
$action = isset($action) ? $action : ''; | |
$username = isset($username) ? $username : ''; | |
$password = isset($password) ? $password : ''; | |
$object = isset($object) ? $object : ''; | |
$objectid = isset($objectid) ? $objectid : ''; | |
switch($action){ |
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 | |
/* | |
IModGenericMessage | |
A VERY abstract representation of a system/client request/response message. | |
The class is meant to normalize all types of inter-system communication for all protocols used. | |
*/ | |
interface IModGenericMessage{ |
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
SIMPLX Controller V0.7 | |
UPDATE 111109 | |
NEW FEATURES: | |
- Added a whole bunch of modResource fields to the Request object. This means that you can route on stuff like: | |
pagetitle | |
template |
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
<script src="https://github.com/douglascrockford/JSON-js/raw/master/json2.js"> </script> | |
<script type="text/javascript"> | |
var simplx = new Object(); | |
simplx.jsonrpc = (function(){ | |
var response = null; | |
var self = this; |