{
    "type": "Ext.app.Controller",
    "reference": {
        "name": "items",
        "type": "array"
    },
    "codeClass": null,
    "userConfig": {
        "designer|userClassName": "GUI"
    },
    "designerId": "04bfe39b-aabc-4406-bdd9-1cf68836dce5",
    "cn": [
        {
            "type": "fixedfunction",
            "reference": {
                "name": "items",
                "type": "array"
            },
            "codeClass": null,
            "userConfig": {
                "designer|params": [
                    "application"
                ],
                "fn": "init",
                "implHandler": [
                    "this.control({\r",
                    "\t'#logFileTree': {\r",
                    "\t\tselect: this.select\r",
                    "\t},\r",
                    "\t'#showPHP': {\r",
                    "\t\tclick: this.showPHP\r",
                    "\t}\r",
                    "});"
                ]
            },
            "designerId": "3a325117-92ac-4555-8373-405db5608f0e"
        },
        {
            "type": "basicfunction",
            "reference": {
                "name": "items",
                "type": "array"
            },
            "codeClass": null,
            "userConfig": {
                "designer|params": [
                    "component",
                    "selected"
                ],
                "fn": "select",
                "implHandler": [
                    "var data = {\r",
                    "\taction: 'show',\r",
                    "\tfilename : selected.get('filename')\r",
                    "};\r",
                    "if(!Ext.isEmpty(data.filename))\r",
                    "\tthis.load(data);"
                ]
            },
            "designerId": "27746b5e-2670-43a3-96aa-584445ebbc21"
        },
        {
            "type": "basicfunction",
            "reference": {
                "name": "items",
                "type": "array"
            },
            "codeClass": null,
            "userConfig": {
                "designer|params": [
                    "btn"
                ],
                "fn": "showPHP",
                "implHandler": [
                    "var data = {\r",
                    "\taction: 'showPHP'\r",
                    "};\r",
                    "this.load(data);"
                ]
            },
            "designerId": "1467fbfd-cb26-4d1c-bfc5-b492b7576486"
        },
        {
            "type": "basicfunction",
            "reference": {
                "name": "items",
                "type": "array"
            },
            "codeClass": null,
            "userConfig": {
                "designer|params": [
                    "data"
                ],
                "fn": "load",
                "implHandler": [
                    "Ext.Ajax.request({\r",
                    "\turl: '../../service/system_logs.php',\r",
                    "\tmethod: 'POST',\r",
                    "\tparams: Ext.Object.fromQueryString(document.location.search),\r",
                    "\tjsonData: data,\r",
                    "\tsuccess: function(response, object){\r",
                    "\t\tvar content = Ext.JSON.decode(response.responseText).result;\r",
                    "\t\tthis.getContent().update(content);\r",
                    "\t},\r",
                    "\tfailure: function(response, object){\r",
                    "\t\tvar text = response.responseText;\r",
                    "\t\tExt.Error.raise({\r",
                    "\t\t\tmsg: 'Failed to get log content',\r",
                    "\t\t\toption: text,   // whatever was passed into the method\r",
                    "\t\t\t'object': object // other arbitrary info\r",
                    "\t\t});\r",
                    "\t},\r",
                    "\tscope: this\r",
                    "});\r",
                    ""
                ]
            },
            "designerId": "4849bbe4-bcbd-4d14-829e-dc237a2e5734"
        },
        {
            "type": "controllerref",
            "reference": {
                "name": "items",
                "type": "array"
            },
            "codeClass": null,
            "userConfig": {
                "ref": "content",
                "selector": "#content"
            },
            "designerId": "c0211c87-b55d-4bf0-adff-44368fc24aa1"
        }
    ]
}