function updateSelectQuery($select) { parent::updateSelectQuery($select); $q = $this->owner->_dsql()->dsql(); $q->table('filestore_file', 'ffs'); $vol = $q->join('filestore_volume', null, null, 'ffv'); $q->field($q->expr('concat_ws("/","' . $this->api->pm->base_path . '",ffv.dirname,ffs.filename)')); $q->where('ffs.id', $this); $select->field($q, $this->short_name . '_url'); }
function init() { parent::init(); $this->setModel($this->use_model); $this->display(array('form' => 'upload')); }
function init() { parent::init(); $this->setModel($this->use_model, $this->deref_field); $this->display(array('form' => 'xepan/base/Upload')); }