classQFileAssetBase
QFileAssetBase Class Reference
Inherits QPanel.Inherited by QFileAsset.

Public Member Functions
- __construct ($objParentObject, $strControlId=null)
- Validate ()
- dlgFileAsset_Upload ()
- GetControlHtml ()
- btnDelete_Click ()
- __get ($strName)
- GetWebUrl ()
- __set ($strName, $mixValue)
Public Attributes
Protected Member Functions
- SetupIconFilePathArray ()
- SetFile ($strFile)
- SetFileAssetType ($intFileAssetType)
Protected Attributes
- $strAcceptibleMimeArray
- $strUnacceptableMessage
- $intFileAssetType
- $strFile
- $strFileName
- $blnClickToView
- $strIconFilePathArray = array()
- $strTemporaryUploadPath
Constructor & Destructor Documentation
| QFileAssetBase::__construct | ( | $ | objParentObject, | |
| $ | strControlId = null | |||
| ) |
Reimplemented from QControlBase.
Reimplemented in QFileAsset.
References QControlBase::$strControlId, and SetupIconFilePathArray().
Member Function Documentation
| QFileAssetBase::__get | ( | $ | strName | ) |
Override method to perform a property "Get" This will get the value of $strName All inhereted objects that call __get() should always fall through to calling parent::__get() in a try/catch statement catching for CallerExceptions.
- Parameters:
-
string $strName Name of the property to get
- Returns:
- mixed the returned property
Reimplemented from QBlockControl.
References QControlBase::$strName, and QCallerException::IncrementOffset().
| QFileAssetBase::__set | ( | $ | strName, | |
| $ | mixValue | |||
| ) |
Override method to perform a property "Set" This will set the property $strName to be $mixValue All inhereted objects that call __set() should always fall through to calling parent::__set() in a try/catch statement catching for CallerExceptions.
- Parameters:
-
string $strName Name of the property to set string $mixValue New value of the property
- Returns:
- mixed the property that was set
Reimplemented from QBlockControl.
References QControlBase::$strName, QType::Boolean, QType::Cast(), QCallerException::IncrementOffset(), SetFile(), SetFileAssetType(), and QType::String.
| QFileAssetBase::btnDelete_Click | ( | ) |
References QControlBase::Refresh().
| QFileAssetBase::dlgFileAsset_Upload | ( | ) |
References QControlBase::Refresh().
| QFileAssetBase::GetControlHtml | ( | ) |
Reimplemented from QBlockControl.
| QFileAssetBase::GetWebUrl | ( | ) |
If the Selected File is WebRoot Accessible, return a valid URL Feel free to override this method.
- Returns:
- string Web-based URL to the File (for Downloading)
| QFileAssetBase::SetFileAssetType | ( | $ | intFileAssetType | ) | [protected] |
References $intFileAssetType, QFileAssetType::Document, QFileAssetType::Image, and QFileAssetType::Pdf.
Referenced by __set().
| QFileAssetBase::SetupIconFilePathArray | ( | ) | [protected] |
Referenced by __construct().
| QFileAssetBase::Validate | ( | ) |
Reimplemented from QBlockControl.
Member Data Documentation
QFileAssetBase::$blnClickToView [protected] |
| QFileAssetBase::$btnDelete |
| QFileAssetBase::$btnUpload |
| QFileAssetBase::$dlgFileAsset |
| QFileAssetBase::$imgFileIcon |
QFileAssetBase::$intFileAssetType [protected] |
Referenced by SetFileAssetType().
QFileAssetBase::$strAcceptibleMimeArray [protected] |
QFileAssetBase::$strFile [protected] |
Referenced by SetFile().
QFileAssetBase::$strFileName [protected] |
QFileAssetBase::$strIconFilePathArray = array() [protected] |
QFileAssetBase::$strTemporaryUploadPath [protected] |
Reimplemented in QFileAsset.
QFileAssetBase::$strUnacceptableMessage [protected] |
The documentation for this class was generated from the following file:
- qcodo/_core/qform/QFileAssetBase.class.php
