Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 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');
 }
Ejemplo n.º 3
0
 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'));
 }
Ejemplo n.º 4
0
 function init()
 {
     parent::init();
 }