function init() { parent::init(); $this->i = $this->join('filestore_image.original_file_id'); $this->i->hasOne($this->file_model_class, 'thumb_file_id')->caption('Thumbnail')->sortable(true); $this->addExpression('thumb_url')->set(array($this, 'getThumbURLExpr'))->caption('Thumb URL')->sortable(true); }
function init() { parent::init(); $this->i = $this->join('filestore_image.original_file_id'); /* $this->hasOne('filestore/'.$this->entity_file,'original_file_id') ->caption('Original File'); */ $this->i->hasOne('filestore/' . $this->entity_file, 'thumb_file_id')->caption('Thumbnail'); }
function init() { parent::init(); $this->i = $this->join('filestore_image.original_file_id'); /* $this->hasOne('filestore/'.$this->entity_file,'original_file_id') ->caption('Original File'); */ $this->i->hasOne('filestore/' . $this->entity_file, 'thumb_file_id')->caption('Thumbnail'); $this->addExpression('thumb_url')->set(array($this, 'getThumbURLExpr')); }
function init() { parent::init(); }