1: <?php
2: 3: 4: 5: 6:
7:
8: 9: 10: 11: 12: 13: 14: 15: 16:
17: class QFileAsset extends QFileAssetBase {
18:
19: protected $strTemporaryUploadPath = '/tmp';
20:
21: 22: 23: 24: 25: 26: 27: 28:
29: public function __construct($objParentObject, $strControlId = null) {
30: parent::__construct($objParentObject, $strControlId);
31:
32:
33: $this->strTemplate = __DOCROOT__ . __PHP_ASSETS__ . '/QFileAsset.tpl.php';
34: $this->dlgFileAsset->Width = '300';
35: $this->UploadText = QApplication::Translate('Upload');
36: $this->CancelText = QApplication::Translate('Cancel');
37: $this->btnUpload->Text = '<img src="' . __VIRTUAL_DIRECTORY__ . __IMAGE_ASSETS__ . '/add.png" alt="' . QApplication::Translate('Upload') . '" border="0"/> ' . QApplication::Translate('Upload');
38: $this->btnDelete->Text = '<img src="' . __VIRTUAL_DIRECTORY__ . __IMAGE_ASSETS__ . '/delete.png" alt="' . QApplication::Translate('Delete') . '" border="0"/> ' . QApplication::Translate('Delete');
39: $this->DialogBoxHtml = '<p>' . QApplication::Translate('Please select a file to upload.') . '</p>';
40: }
41: }