XCube
The foundational Core of XoopsCube Legacy
 
Loading...
Searching...
No Matches
XCube_FileProperty Class Reference

Represents the special property which handles uploaded file. More...

Inheritance diagram for XCube_FileProperty:
XCube_AbstractProperty XCube_PropertyInterface XCube_ImageFileProperty

Public Member Functions

 __construct ( $name)
 Constructor.
 
 hasFetchControl ()
 Gets a value indicating whether this object has a fetch control.
 
 fetch (&$form)
 
 isNull ()
 Gets a value indicating whether this object is null.
 
 toString ()
 Gets a value as string.
 
 toNumber ()
 Gets a value as integer.
 
- Public Member Functions inherited from XCube_AbstractProperty
 set ( $value)
 Sets $value as raw value to this property. And the value is casted by the property's type'.
 
 get ( $index=null)
 Gets the value of this property.
 
 isArray ()
 Gets a value indicating whether this object expresses Array.
 
 toHTML ()
 Gets a value as encoded HTML code.
 
- Public Member Functions inherited from XCube_PropertyInterface
 get ()
 [Abstract] Gets the value of this property.
 
 setValue ( $arg0=null, $arg1=null)
 
 getValue ( $arg0=null)
 

Data Fields

 $mIndex
 mixed - ID for XCube_FileArrayProperty.
 
- Data Fields inherited from XCube_AbstractProperty
 $mName
 string
 
 $mValue
 string
 

Detailed Description

Represents the special property which handles uploaded file.

See also
XCube_FormFile

Constructor & Destructor Documentation

◆ __construct()

__construct ( $name)

Constructor.

Parameters
string$name- A name of this property.

Reimplemented from XCube_AbstractProperty.

Reimplemented in XCube_ImageFileProperty.

Member Function Documentation

◆ fetch()

fetch ( & $form)

[Abstract] Fetches values.

Parameters
XCube_ActionForm$form
Returns
void

Reimplemented from XCube_PropertyInterface.

◆ hasFetchControl()

hasFetchControl ( )

Gets a value indicating whether this object has a fetch control.

Returns
bool

Reimplemented from XCube_AbstractProperty.

◆ isNull()

isNull ( )

Gets a value indicating whether this object is null.

Returns
bool

Reimplemented from XCube_AbstractProperty.

◆ toNumber()

toNumber ( )

Gets a value as integer.

Returns
int

Reimplemented from XCube_AbstractProperty.

◆ toString()

toString ( )

Gets a value as string.

Returns
string

Reimplemented from XCube_AbstractProperty.

Field Documentation

◆ $mIndex

$mIndex

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