Beispiel #1
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 #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->axes = call_user_func(array($modelClassConstruct, 'createChartAxes'));      */

        return parent::render();
    }
Beispiel #3
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 #4
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."'});});";