This file contains 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 $controllers Array of String */ | |
/** | |
* Set up Slim listeners for each controller | |
*/ | |
foreach($controllers as $C){ | |
// Map GET | |
$slim->get("/$C/:id/:relation",function($id,$relation){ | |
print_r(array( |
This file contains 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 | |
header('Content-Type: text/plain'); | |
define('ROOT',dirname(dirname(__FILE__)).'/'); | |
define('CONTROLLER_PATH',ROOT.'controllers/'); | |
/** | |
* Initialize some Slim action | |
*/ | |
require ROOT.'lib/Slim/Slim/Slim.php'; |
This file contains 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 | |
abstract class modMigrateObject { | |
/* @var object Object Properties */ | |
private $data; | |
/* @var string MODx Class Name */ | |
private $classKey; | |
This file contains 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 definition for pms packages | |
* | |
* @package pms | |
* @author Alan Pich <alan@alanpich.com> | |
* @copyright (c) 2013, Alan Pich | |
* @date 28-Nov-2012 | |
*/ |
This file contains 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 | |
namespace OS\ConMan; | |
use \Slim\Extras\Views\Twig; | |
class ConMan { | |
protected $slim; | |
protected $view; | |
This file contains 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 | |
namespace AlanPich\Tools; | |
class ModxWrapper | |
{ | |
/** @var \modX */ | |
protected $modx; | |
/** @var string */ |
This file contains 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
/** | |
* jQuery plugin that allows styles to be set temporarily | |
* to an element, and will revert to their previous state | |
* after an allotted time or when a specified event is triggered | |
* | |
* @author Alan Pich <alan.pich@gmail.com> | |
* | |
* @param {Object} styles | |
* @param {String|Number} timeOrEvent | |
*/ |
This file contains 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
<html> | |
<head> | |
... | |
[[~123:javascript]] | |
[[~321:stylesheet]] | |
</head> | |
</html> |
This file contains 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 | |
/** core/components/mcm/processors/mgr/resource/getchildlist.class.php */ | |
/** | |
* Create this file to allow filtering of resources by a parent ID | |
* | |
* @param int $parentId | |
* @return array Array of modResource child elements | |
* | |
*/ | |
if(!class_exists('modObjectGetListProcessor')){ |
This file contains 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 | |
$path_to_modx = '/var/www/modx'; | |
define('MODX_API_MODE',true); | |
require $path_to_modx."/index.php"; | |
/** @var \modX $modx */ | |
// Download Details | |
/** @var string $package_url - URL from the orange 'Download' button on the MODx Extras website */ | |
$package_url = 'http://modx.com/extras/download/?id=512403a2f245547611000025' | |
$package_signature = 'getresources-1.6.0-pl' |
OlderNewer