Inheritance: extends Field
Exemplo n.º 1
0
 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');
 }
Exemplo n.º 2
0
 function init()
 {
     parent::init();
     $this->setModel($this->use_model);
     $this->display(array('form' => 'upload'));
 }
Exemplo n.º 3
0
 function init()
 {
     parent::init();
     $this->setModel($this->use_model, $this->deref_field);
     $this->display(array('form' => 'xepan/base/Upload'));
 }