Public Member Functions | Protected Member Functions

Article_Pictures Class Reference

Inheritance diagram for Article_Pictures:
Collaboration diagram for Article_Pictures:

List of all members.

Public Member Functions

 render ()
 save ()
 deletePicture ()

Protected Member Functions

 _resetMasterPicture ($oArticle, $iIndex, $blDeleteMaster=false)
 _deleteMainIcon ($oArticle)
 _deleteThumbnail ($oArticle)
 _getUploadedMasterPicIndexes ()
 _cleanupCustomFields ($oArticle)

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 234 of file article_pictures.php.

Article_Pictures._deleteMainIcon ( oArticle  )  [protected]

Deletes main icon file

Parameters:
oxArticle $oArticle article object
Returns:
null

Definition at line 165 of file article_pictures.php.

Article_Pictures._deleteThumbnail ( oArticle  )  [protected]

Deletes thumbnail file

Parameters:
oxArticle $oArticle article object
Returns:
null

Definition at line 186 of file article_pictures.php.

Article_Pictures._getUploadedMasterPicIndexes (  )  [protected]

Returns uploaded master image indexes

Deprecated:
not used since 20110506
Returns:
array

Definition at line 207 of file article_pictures.php.

Article_Pictures._resetMasterPicture ( oArticle,
iIndex,
blDeleteMaster = false 
) [protected]

Deletes selected master picture and all pictures generated from master picture

Parameters:
oxArticle $oArticle article object
int $iIndex master picture index
bool $blDeleteMaster if TRUE - deletes and unsets master image file
Returns:
null

Definition at line 133 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 86 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: