Article_Pictures Class Reference

Inheritance diagram for Article_Pictures:
Inheritance graph
[legend]
Collaboration diagram for Article_Pictures:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 render ()
 save ()
 deletePicture ()

Protected Member Functions

 _deleteMasterPicture ($oArticle, $iIndex)
 _deleteMainIcon ($oArticle)
 _deleteThumbnail ($oArticle)
 _resetMasterPicture ($oArticle, $iIndex)
 _updateGeneratedPicsAmount ($oArticle)
 _getMinUploadedMasterPicIndex ()
 _cleanupZoomFields ($oArticle)
 _cleanupCustomFields ($oArticle)
 _getUploadedMasterPicIndex ($sFileType)

Detailed Description

Admin article picture manager. Collects information about article's used pictures, there is posibility to upload any other picture, etc. Admin Menu: Manage Products -> Articles -> Pictures.

Definition at line 9 of file article_pictures.php.


Member Function Documentation

Article_Pictures._cleanupCustomFields ( oArticle  )  [protected]

Cleans up article custom fields oxicon and oxthumb. If there is custom icon or thumb picture, leaves records untouched.

Parameters:
oxArticle $oArticle article object
Returns:
null

Definition at line 316 of file article_pictures.php.

Article_Pictures._cleanupZoomFields ( oArticle  )  [protected]

Cleans up article oxzoom fields for all uploaded pictures.

Parameters:
oxArticle $oArticle article object
Returns:
null

Definition at line 293 of file article_pictures.php.

Article_Pictures._deleteMainIcon ( oArticle  )  [protected]

Deletes main icon file

Parameters:
oxArticle $oArticle article object
Returns:
null

Definition at line 188 of file article_pictures.php.

Article_Pictures._deleteMasterPicture ( oArticle,
iIndex 
) [protected]

Deletes selected master picture and all pictures generated from master picture

Parameters:
oxArticle $oArticle article object
int $iIndex master picture index
Returns:
null

Definition at line 160 of file article_pictures.php.

Article_Pictures._deleteThumbnail ( oArticle  )  [protected]

Deletes thumbnail file

Parameters:
oxArticle $oArticle article object
Returns:
null

Definition at line 207 of file article_pictures.php.

Article_Pictures._getMinUploadedMasterPicIndex (  )  [protected]

Get min uploaded master image index number.

Returns:
int

Definition at line 268 of file article_pictures.php.

Article_Pictures._getUploadedMasterPicIndex ( sFileType  )  [protected]

Get uploaded master image index.

Parameters:
string $sFileType image type
Returns:
int

Definition at line 339 of file article_pictures.php.

Article_Pictures._resetMasterPicture ( oArticle,
iIndex 
) [protected]

Resets selected master picture. Deletes all pictures generated from master picture, but leaves master picture untouched.

Parameters:
oxArticle $oArticle article object
int $iIndex master picture index
Returns:
null

Definition at line 228 of file article_pictures.php.

Article_Pictures._updateGeneratedPicsAmount ( oArticle  )  [protected]

Update article already generated pictures amount

Parameters:
oxArticle $oArticle article object
Returns:
null

Definition at line 254 of file article_pictures.php.

Article_Pictures.deletePicture (  ) 

Deletes selected master picture and all other master pictures where master picture index is higher than currently deleted index. Also deletes custom icon and thumbnail.

Returns:
null

Definition at line 102 of file article_pictures.php.

Article_Pictures.render (  ) 

Loads article information - pictures, passes data to Smarty engine, returns name of template file "article_pictures.tpl".

Returns:
string

Reimplemented from oxAdminDetails.

Definition at line 17 of file article_pictures.php.

Article_Pictures.save (  ) 

Saves (uploads) pictures to server.

Returns:
mixed

Reimplemented from oxAdminView.

Definition at line 48 of file article_pictures.php.


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

Generated by  doxygen 1.6.2