fixing small issues with rest

This commit is contained in:
fernando
2012-08-29 16:29:02 -04:00
parent c06b31ca6c
commit 84b51bf05e
3 changed files with 10 additions and 9 deletions

View File

@@ -1,6 +1,6 @@
<?php
spl_autoload_register(function ($class) {
function hanga_anonymous($class) {
/*
This array has a map of (class => file)
*/
@@ -72,23 +72,23 @@ spl_autoload_register(function ($class) {
// deps {{{
static $deps = array (
'haanga_extension_filter' =>
'haanga_extension_filter' =>
array (
0 => 'haanga_extension',
),
'haanga_extension_filter_translation' =>
'haanga_extension_filter_translation' =>
array (
0 => 'haanga_extension_filter_trans',
),
'haanga_extension_tag' =>
'haanga_extension_tag' =>
array (
0 => 'haanga_extension',
),
'hg_parser' =>
'hg_parser' =>
array (
0 => 'haanga_compiler_parser',
),
'haanga_compiler_runtime' =>
'haanga_compiler_runtime' =>
array (
0 => 'haanga_compiler',
),
@@ -112,6 +112,7 @@ spl_autoload_register(function ($class) {
}
return false;
});
}
spl_autoload_register( "hanga_anonymous" );

2
workflow/engine/bin/rest-gen Normal file → Executable file
View File

@@ -9,7 +9,7 @@
* @author Erik Amaru Ortiz <aortiz.erik@gmail.com>
*/
include dirname(__FILE__) . '/../../../gulliver/Core/Bootstrap.php';
include dirname(__FILE__) . '/../../../gulliver/core/Bootstrap.php';
include dirname(__FILE__) . '/../../../workflow/engine/PmBootstrap.php';
$config = array(

View File

@@ -87,7 +87,7 @@ class Service_Rest_RestTool
$configIniStr .= "[$table]\n";
$configIniStr .= " ; Param to set allowed methods (separeted by a single space). Complete example: ALLOW_METHODS = GET POST PUT DELETE\n";
$configIniStr .= " ALLOW_METHODS = GET\n";
$configIniStr .= " ; Params to set columns that should be exposed, you can use wildcard '*' to speccify all columns.\n";
$configIniStr .= " ; Params to set columns that should be exposed, you can use wildcard '*' to specify all columns.\n";
$configIniStr .= " EXPOSE_COLUMNS_GET = *\n";
$configIniStr .= " EXPOSE_COLUMNS_POST = ".$strColumns."\n";
$configIniStr .= " EXPOSE_COLUMNS_PUT = ".$strColumns."\n";