function renderClass($name, $configs = array()){ $classConstruct = BaseExtClass::initClass($name); if($classConstruct === false)return false; $class = new $classConstruct($configs); $class->init(); return $class->render(); }
function render(){ $storeClassConstruct = $this->initClass(static::StoreClass); $modelClass = $storeClassConstruct::ModelClass; $modelClassConstruct = $this->initClass($modelClass); $this->addRequire($modelClass); $this->addRequire(static::StoreClass); $this->store = static::StoreClass; $this->columns = call_user_func(array($modelClassConstruct, 'createGridColumns'));
function render(){ $storeClassConstruct = $this->initClass(static::StoreClass); $modelClass = $storeClassConstruct::ModelClass; $modelClassConstruct = $this->initClass($modelClass); $this->addRequire($modelClass); $this->addRequire(static::StoreClass); $this->store = static::StoreClass; /* $this->axes = call_user_func(array($modelClassConstruct, 'createChartAxes')); */ return parent::render(); }
function render(){ $this->renderFields(); if(!empty($this->proxyUrl)){ $this->proxy = (object)array( 'type' => 'ajax', 'url' => '/extjs'.$this->proxyUrl, 'reader' => (object)array( 'type' => 'json', 'root' => 'data' ) ); } return parent::render(); }
function render(){ if(!empty($this->proxyUrl)){ $proxy = array( 'type' => 'ajax', 'url' => '/extjs'.$this->proxyUrl, 'reader' => array( 'type' => 'json', 'root' => 'data', ) ); if(isset($this->pageSize)){ $proxy['reader']['totalProperty'] = 'total'; } $proxy['reader'] = (object)$proxy['reader']; $this->proxy = (object)$proxy; } $str = parent::render(); $str .= "Ext.onReady(function(){Ext.create('".static::ClassName."',{storeId: '".static::ClassName."'});});";
public static function createBodyItems($items){ $rItems = array(); foreach($items as $item){ $class = BaseExtClass::initClass($item['className']); if($class !== false){ $rItems[] = call_user_func(array($class,"renderItem"),$item);