constructor STPHPImage
STPHPForm constructor STPHPImage ( $name )
Creates the object
- Function Parameters:
- string $name: the name of the form used in NAME tag
- Function Info:
- Access -
public
loadFromDb
void loadFromDb ( $db_conf, $table, $record_id, $imgField, $imgTypeField, $imgDesc )
Load an image from a db (using ADODB library)
- Function Parameters:
- string $db_conf: the configuration file for the db
- string $table: the table of the db
- integer $record_id: the record id
- string $imgField: the field of the db that contains the image
- string $imgTypeField: the field of the db that contains the type of the image
- string $imgDesc: the description of the image
- Function Info:
- Access -
public
write
string write ( )
Overrides: STPHPComponent::write()
Designs the object at runtime
Available attributes :
- VISIBLE : defines if the component must be designed or not
- SRC : the source for the image
- ALIGN : the alignment of the image
- ALT : the ALT text for the image
- LINK : defines the link for the label
- LINK_TARGET : defines the target for the link
- TITLE : defines the title for the link
- ONCLICK : defines the onclick event hook
- ONMOUSEOVER : defines the onmouseover event hook
- ONMOUSEOUT : defines the onmouseout event hook
- ONMOUSEDOWN : defines the onmousedown event hook
- ONMOUSEUP : defines the onmouseup event hook
- Function Parameters:
- Function Info:
- Return -
the code that represents the object at runtime
- Access -
private