XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
Loading...
Searching...
No Matches
Legacy_AbstractImageObject Class Reference
Inheritance diagram for Legacy_AbstractImageObject:
XoopsSimpleObject AbstractXoopsObject

Public Member Functions

 __construct ()
 
 setupPostData ( $num=1)
 
 getTemporaryPath ()
 
 getFilename ()
 
 getRandomFileName ($prefix, $salt=null)
 
 isImage ( $tsize=0)
 
 isDeleted ()
 
 getImageInfo ($type, $tsize=0)
 
 makeImageTag ( $tsize=1, $htmlId=null, $htmlClass=null)
 
 getFilePath ($tsize=0)
 
 getFileUrl ($tsize=0)
 
- Public Member Functions inherited from XoopsSimpleObject
 setNew ()
 
 unsetNew ()
 
 isNew ()
 
 initVar ($key, $dataType, $value=null, $required=false, $size=null)
 
 assignVar ($key, $value)
 
 assignVars ($values)
 
 set ($key, $value)
 
 get ($key)
 
 gets ()
 
 setVar ($key, $value)
 
 setVars ($values)
 
 getVar ($key)
 
 getShow ($key)
 
 getTypeInformations ()
 
 getPurifiedHtml ( $key, $encoding=null, $doctype=null)
 
 getDirname ()
 

Data Fields

const IMAGE_TAG = '<img src="%s" width="%d" height="%d" alt="%s">'
 
const SWF_TAG
 
- Data Fields inherited from XoopsSimpleObject
 $mVars = []
 
 $mIsNew = true
 
 $mDirname = null
 

Protected Attributes

 $mDirArray = []
 
 $_mTemporaryPath = null
 
 $_mFilename = null
 
 $_mIsDeleted = false
 

Detailed Description

Definition at line 17 of file AbstractImageObject.class.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( )

__construct

Parameters
void
Returns
void

Reimplemented from XoopsSimpleObject.

Definition at line 35 of file AbstractImageObject.class.php.

Member Function Documentation

◆ getFilename()

getFilename ( )

Definition at line 89 of file AbstractImageObject.class.php.

◆ getFilePath()

getFilePath ( $tsize = 0)
abstract

getFilePath

Parameters
int$tsize
Returns
string

◆ getFileUrl()

getFileUrl ( $tsize = 0)
abstract

getFileUrl

Parameters
int$tsize
Returns
string

◆ getImageInfo()

getImageInfo ( $type,
$tsize = 0 )

Return file size.

Parameters
$type
int$tsize
Returns
int

Definition at line 147 of file AbstractImageObject.class.php.

◆ getRandomFileName()

getRandomFileName ( $prefix,
$salt = null )

getRandomFileName

Parameters
string$prefix
bool$salt= null
Returns
string

Definition at line 101 of file AbstractImageObject.class.php.

◆ getTemporaryPath()

getTemporaryPath ( )

Definition at line 84 of file AbstractImageObject.class.php.

◆ isDeleted()

isDeleted ( )

Should image file be deleted ?

Parameters
void
Returns
bool

Definition at line 136 of file AbstractImageObject.class.php.

◆ isImage()

isImage ( $tsize = 0)

is image file ?

Parameters
int$tsize
Returns
bool
Parameters
$tsize* int **

Definition at line 119 of file AbstractImageObject.class.php.

◆ makeImageTag()

makeImageTag ( $tsize = 1,
$htmlId = null,
$htmlClass = null )
abstract

makeImageTag

Parameters
int$tsize
string$htmlId
string$htmlClass
Returns
string
Parameters
$tsize* int **
$htmlId* string **
$htmlClass* string **

◆ setupPostData()

setupPostData ( $num = 1)

set temporary image path and image_id at this object

Parameters
int$num
Returns
string
Parameters
$num* int **

Definition at line 60 of file AbstractImageObject.class.php.

Field Documentation

◆ $_mFilename

$_mFilename = null
protected

Definition at line 25 of file AbstractImageObject.class.php.

◆ $_mIsDeleted

$_mIsDeleted = false
protected

Definition at line 26 of file AbstractImageObject.class.php.

◆ $_mTemporaryPath

$_mTemporaryPath = null
protected

Definition at line 24 of file AbstractImageObject.class.php.

◆ $mDirArray

$mDirArray = []
protected

Definition at line 23 of file AbstractImageObject.class.php.

◆ IMAGE_TAG

const IMAGE_TAG = '<img src="%s" width="%d" height="%d" alt="%s">'

Definition at line 19 of file AbstractImageObject.class.php.

◆ SWF_TAG

const SWF_TAG
Initial value:
= '<object data="%s" type="application/x-shockwave-flash" width="%d" height="%d"><param name="movie" value="%s" /><param name=loop value=false>
</object>'

Definition at line 20 of file AbstractImageObject.class.php.


The documentation for this class was generated from the following file: