QCubed - A PHP5 rapid development MVC framework.
Home  |  Updates

classQImageBase

QImageBase Class Reference

Inherits QControl.

Collaboration diagram for QImageBase:

List of all members.

Public Member Functions

Static Public Member Functions

  • static Run ()

Protected Member Functions

Protected Attributes


Constructor & Destructor Documentation

QImageBase::__construct ( objParentObject,
strControlId = null 
)

Reimplemented from QControlBase.

References QControlBase::$strControlId.


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::ParsePostData (  ) 

Reimplemented from QControlBase.

QImageBase::RenderAsImgSrc ( blnDisplayOutput = true  ) 

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: