Class Legacy_AbstractImageObject
This class implements the interface of XoopsObjectInterface. It gives a
developer 'TYPE SAFE' with the limit. The instance can have only five data type
that are BOOL, INT, FLOAT, STRING and TEXT. You can not get the sanitizing
values by cleanVars() that is the function of XoopsObject. But, all set
functions give you 'TYPE SAFE'. You should use this class with using your
favorite ActionForm.
"Check values by actionform, set values to XoopsSimpleObject"
This class was defined for "The prolongation of human life plan". This is not
the rule that you are forced.
-
AbstractXoopsObject
-
XoopsSimpleObject
-
Legacy_AbstractImageObject
Methods summary
public
|
|
public
string
|
#
setupPostData( integer $num = 1 )
set temporary image path and image_id at this object
set temporary image path and image_id at this object
Parameters
Returns
string
|
public
|
|
public
|
|
public
string
|
#
getRandomFileName( string $prefix, boolean $salt = null )
getRandomFileName
Parameters
- $prefix
string
- $salt
boolean = null
Returns
string
|
public
boolean
|
#
isImage( integer $tsize = 0 )
is image file ?
Parameters
Returns
boolean
|
public
boolean
|
#
isDeleted( )
Should image file be deleted ?
Should image file be deleted ?
Returns
boolean
|
public
integer
|
#
getImageInfo( $type, $tsize = 0 )
Return file size.
Returns
integer
|
abstract public
string
|
#
makeImageTag( integer $tsize = 1, string $htmlId = null, string $htmlClass = null )
makeImageTag
Parameters
- $tsize
integer
- $htmlId
string
- $htmlClass
string
Returns
string
|
abstract public
string
|
#
getFilePath( integer $tsize = 0 )
getFilePath
Parameters
Returns
string
|
abstract public
string
|
#
getFileUrl( integer $tsize = 0 )
getFileUrl
Parameters
Returns
string
|
Methods inherited from XoopsSimpleObject
XoopsSimpleObject(),
assignVar(),
assignVars(),
get(),
getDirname(),
getPurifiedHtml(),
getShow(),
getTypeInformations(),
gets(),
initVar(),
isNew(),
set(),
setNew(),
setVar(),
setVars(),
unsetNew()
|
Constants summary
string
|
IMAGE_TAG
|
'<img src="%s" width="%d" height="%d" alt="%s" />' |
|
string
|
SWF_TAG
|
'<object data="%s" type="application/x-shockwave-flash" width="%d" height="%d"><param name="movie" value="%s" /><param name=loop value=false>
</object>' |
|