public function __construct($args) { $this->functionName = array_shift($args); $aParams = array(); foreach ($args as $argAtual) { if ($argAtual instanceof Component) { } else { $aParams[] = \Faderim\Json\Json::encode($argAtual); } } $this->params = '[' . implode(',', $aParams) . ']'; }
public function create() { $sResponse = 'Ext.create(' . json_encode($this->getExtClassName()) . ',' . \Faderim\Json\Json::encode($this->getExtProperties()) . ')'; return $sResponse; }
public function render() { header('Content-type:text/json'); echo \Faderim\Json\Json::encode($this->jsonReturn); }