classQImageBase
QImageBase Class Reference
Inherits QControl.

Public Member Functions
- ParsePostData ()
- Validate ()
- __construct ($objParentObject, $strControlId=null)
- RenderAsImgSrc ($blnDisplayOutput=true)
- Serialize ()
- RenderImage ($strPath=null)
- __get ($strName)
- __set ($strName, $mixValue)
Static Public Member Functions
- static Run ()
Protected Member Functions
- GetControlHtml ()
- RenderImageHelper ($objFinalImage, $strPath)
- RenderImageMagickHelper ($objFinalImage, $strPath)
Protected Attributes
- $strAlternateText
- $strImageType = QIMageType::Png
- $intJpegQuality = 100
- $strCacheFolder = null
- $strCacheFilename = null
- $strCachedActualFilePath = null
- $strControlClassName = 'QImageBase'
- $strImagickTempFilePath = '/tmp'
Constructor & Destructor Documentation
| QImageBase::__construct | ( | $ | objParentObject, | |
| $ | strControlId = null | |||
| ) |
Member Function Documentation
| QImageBase::__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 QControlBase.
References QControlBase::$strName, and QCallerException::IncrementOffset().
| QImageBase::__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 QControlBase.
References QControlBase::$strName, QType::Cast(), QCallerException::IncrementOffset(), QType::Integer, and QType::String.
| QImageBase::GetControlHtml | ( | ) | [protected] |
| QImageBase::ParsePostData | ( | ) |
Reimplemented from QControlBase.
| QImageBase::RenderAsImgSrc | ( | $ | blnDisplayOutput = true |
) |
References QImageType::AnimatedGif, QImageType::Gif, QImageType::Jpeg, RenderImage(), and Serialize().
Referenced by GetControlHtml().
| QImageBase::RenderImage | ( | $ | strPath = null |
) | [abstract] |
Referenced by RenderAsImgSrc().
| QImageBase::RenderImageHelper | ( | $ | objFinalImage, | |
| $ | strPath | |||
| ) | [protected] |
Used by custom RenderImage method to output the final image. Uses $this->strImageType to determine type of image to be rendered. This version is to be used when rendering an image using the GD library.
If strPath is not set, output to the screen. If it is, save to strPath.
- Parameters:
-
resource $objFinalImage image in GD format string $strPath
References QImageType::AnimatedGif, QImageType::Gif, and QImageType::Jpeg.
| QImageBase::RenderImageMagickHelper | ( | $ | objFinalImage, | |
| $ | strPath | |||
| ) | [protected] |
Used by custom RenderImage method to output the final image. Uses $this->strImageType to determine type of image to be rendered. This version is to be used when rendering an image using the Imagick library.
If strPath is not set, output to the screen. If it is, save to strPath.
- Parameters:
-
Imagick $objFinalImage image as an instance of the Imagick class string $strPath
References QImageType::AnimatedGif, QImageType::Gif, and QImageType::Jpeg.
| static QImageBase::Run | ( | ) | [static] |
| QImageBase::Serialize | ( | ) |
Referenced by RenderAsImgSrc().
| QImageBase::Validate | ( | ) |
Reimplemented from QControlBase.
Member Data Documentation
QImageBase::$intJpegQuality = 100 [protected] |
QImageBase::$strAlternateText [protected] |
QImageBase::$strCachedActualFilePath = null [protected] |
QImageBase::$strCacheFilename = null [protected] |
QImageBase::$strCacheFolder = null [protected] |
QImageBase::$strControlClassName = 'QImageBase' [protected] |
QImageBase::$strImageType = QIMageType::Png [protected] |
QImageBase::$strImagickTempFilePath = '/tmp' [protected] |
The documentation for this class was generated from the following file:
- qcodo/_core/qform/QImageBase.class.php
