Beispiel #1
0
	function renderClass($name, $configs = array()){
		$classConstruct = BaseExtClass::initClass($name);
		if($classConstruct === false)return false;

		$class = new $classConstruct($configs);
		$class->init();

		return $class->render();
	}
Beispiel #2
0
	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'));
Beispiel #3
0
    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();
    }
Beispiel #4
0
	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();
	}
Beispiel #5
0
	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."'});});";
Beispiel #6
0
	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);