X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/ee06f37b0f6f6d94cd05a6ffae556660f7c4a2bc..c930e9176a5a85509c5b0230e2bff5c22a591432:/examples/direct/php/classes/TestAction.php diff --git a/examples/direct/php/classes/TestAction.php b/examples/direct/php/classes/TestAction.php new file mode 100644 index 00000000..75bc869c --- /dev/null +++ b/examples/direct/php/classes/TestAction.php @@ -0,0 +1,36 @@ +'n' . $i, + 'text'=>'Node ' . $i, + 'leaf'=>false + )); + } + }else if(strlen($id) == 2){ + $num = substr($id, 1); + for($i = 1; $i <= 5; ++$i){ + array_push($out, array( + 'id'=>$id . $i, + 'text'=>'Node ' . $num . '.' . $i, + 'leaf'=>true + )); + } + } + return $out; + } +}