git.ithinksw.org
/
extjs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Upgrade to ExtJS 4.0.7 - Released 10/19/2011
[extjs.git]
/
examples
/
direct
/
php
/
api.php
diff --git
a/examples/direct/php/api.php
b/examples/direct/php/api.php
index
de70809
..
f595275
100644
(file)
--- a/
examples/direct/php/api.php
+++ b/
examples/direct/php/api.php
@@
-7,10
+7,17
@@
$actions = array();
foreach($API as $aname=>&$a){
$methods = array();
foreach($a['methods'] as $mname=>&$m){
foreach($API as $aname=>&$a){
$methods = array();
foreach($a['methods'] as $mname=>&$m){
- $md = array(
- 'name'=>$mname,
- 'len'=>$m['len']
- );
+ if (isset($m['len'])) {
+ $md = array(
+ 'name'=>$mname,
+ 'len'=>$m['len']
+ );
+ } else {
+ $md = array(
+ 'name'=>$mname,
+ 'params'=>$m['params']
+ );
+ }
if(isset($m['formHandler']) && $m['formHandler']){
$md['formHandler'] = true;
}
if(isset($m['formHandler']) && $m['formHandler']){
$md['formHandler'] = true;
}
@@
-25,7
+32,7
@@
$cfg = array(
'actions'=>$actions
);
'actions'=>$actions
);
-echo 'Ext.app.REMOTING_API = ';
+echo 'Ext.
ns("Ext.app"); Ext.
app.REMOTING_API = ';
echo json_encode($cfg);
echo ';';
echo json_encode($cfg);
echo ';';