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) |
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.
Article_Pictures._cleanupCustomFields | ( | $ | oArticle | ) | [protected] |
Cleans up article custom fields oxicon and oxthumb. If there is custom icon or thumb picture, leaves records untouched.
oxArticle | $oArticle article object |
Definition at line 316 of file article_pictures.php.
Article_Pictures._cleanupZoomFields | ( | $ | oArticle | ) | [protected] |
Cleans up article oxzoom fields for all uploaded pictures.
oxArticle | $oArticle article object |
Definition at line 293 of file article_pictures.php.
Article_Pictures._deleteMainIcon | ( | $ | oArticle | ) | [protected] |
Deletes main icon file
oxArticle | $oArticle article object |
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
oxArticle | $oArticle article object | |
int | $iIndex master picture index |
Definition at line 160 of file article_pictures.php.
Article_Pictures._deleteThumbnail | ( | $ | oArticle | ) | [protected] |
Deletes thumbnail file
oxArticle | $oArticle article object |
Definition at line 207 of file article_pictures.php.
Article_Pictures._getMinUploadedMasterPicIndex | ( | ) | [protected] |
Get min uploaded master image index number.
Definition at line 268 of file article_pictures.php.
Article_Pictures._getUploadedMasterPicIndex | ( | $ | sFileType | ) | [protected] |
Get uploaded master image index.
string | $sFileType image type |
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.
oxArticle | $oArticle article object | |
int | $iIndex master picture index |
Definition at line 228 of file article_pictures.php.
Article_Pictures._updateGeneratedPicsAmount | ( | $ | oArticle | ) | [protected] |
Update article already generated pictures amount
oxArticle | $oArticle article object |
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.
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".
Reimplemented from oxAdminDetails.
Definition at line 17 of file article_pictures.php.
Article_Pictures.save | ( | ) |
Saves (uploads) pictures to server.
Reimplemented from oxAdminView.
Definition at line 48 of file article_pictures.php.