2007-2015 PrestaShop
NOTICE OF LICENSE
This source file is subject to the Open Software License (OSL 3.0) that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://opensource.org/licenses/osl-3.0.php If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to [email protected] so we can send you a copy immediately.
DISCLAIMER
Do not edit or add to this file if you wish to upgrade PrestaShop to newer versions in the future. If you wish to customize PrestaShop for your needs please refer to http://www.prestashop.com for more information.
- Class name: WebserviceSpecificManagementImagesCore
- Source: classes/webservice/WebserviceSpecificManagementImages.php line 27
- This class implements: WebserviceSpecificManagementInterface
- $acceptedImgMimeTypes
- $defaultImage
- $imageResource
- $imageType
- $imageTypes
- $imgExtension
- $imgMaxUploadSize
- $imgToDisplay
- $objOutput
- $output
- $productImageDeclinationId
- $wsObject
- deleteImageOnDisk
- getContent
- getCustomizations
- getObjectOutput
- getWsObject
- manage
- manageCustomizationImages
- manageDeclinatedImages
- manageDeclinatedImagesCRUD
- manageDefaultDeclinatedImages
- manageEntityDeclinatedImages
- manageGeneralImages
- manageImages
- manageListDeclinatedImages
- manageProductImages
- setObjectOutput
- setWsObject
- writeImageOnDisk
- writePostedImageOnDisk
protected array $acceptedImgMimeTypes = array('image/gif', 'image/jpg', 'image/jpeg', 'image/pjpeg', 'image/png', 'image/x-png')
- Visibility: protected
- Source: classes/webservice/WebserviceSpecificManagementImages.php line 72.
protected boolean $defaultImage = false
- Visibility: protected
- Source: classes/webservice/WebserviceSpecificManagementImages.php line 82.
public mixed $imageResource = null
- Visibility: public
- Source: classes/webservice/WebserviceSpecificManagementImages.php line 88.
protected string $imageType = null
- Visibility: protected
- Source: classes/webservice/WebserviceSpecificManagementImages.php line 62.
protected array $imageTypes = array('general' => array('header' => array(), 'mail' => array(), 'invoice' => array(), 'store_icon' => array()), 'products' => array(), 'categories' => array(), 'manufacturers' => array(), 'suppliers' => array(), 'stores' => array(), 'customizations' => array())
- Visibility: protected
- Source: classes/webservice/WebserviceSpecificManagementImages.php line 44.
protected string $imgExtension
- Visibility: protected
- Source: classes/webservice/WebserviceSpecificManagementImages.php line 39.
protected integer $imgMaxUploadSize = 3000000
- Visibility: protected
- Source: classes/webservice/WebserviceSpecificManagementImages.php line 67.
public string $imgToDisplay = null
- Visibility: public
- Source: classes/webservice/WebserviceSpecificManagementImages.php line 87.
protected \WebserviceOutputBuilder $objOutput
- Visibility: protected
- Source: classes/webservice/WebserviceSpecificManagementImages.php line 30.
protected mixed $output
- Visibility: protected
- Source: classes/webservice/WebserviceSpecificManagementImages.php line 31.
protected string $productImageDeclinationId = null
- Visibility: protected
- Source: classes/webservice/WebserviceSpecificManagementImages.php line 77.
protected \WebserviceRequest $wsObject
- Visibility: protected
- Source: classes/webservice/WebserviceSpecificManagementImages.php line 34.
boolean WebserviceSpecificManagementImagesCore::deleteImageOnDisk(string $file_path, array $image_types, string $parent_path)
Delete the image on disk
- Visibility: protected
- Source: classes/webservice/WebserviceSpecificManagementImages.php line 843
- $file_path string - the image file path
- $image_types array - The different sizes
- $parent_path string - The parent path
mixed WebserviceSpecificManagementImagesCore::getContent()
This must be return an array with specific values as WebserviceRequest expects.
- Visibility: public
- Source: classes/webservice/WebserviceSpecificManagementImages.php line 123
mixed WebserviceSpecificManagementImagesCore::getCustomizations()
- Visibility: protected
- Source: classes/webservice/WebserviceSpecificManagementImages.php line 657
mixed WebserviceSpecificManagementImagesCore::getObjectOutput()
- Visibility: public
- Source: classes/webservice/WebserviceSpecificManagementImages.php line 104
mixed WebserviceSpecificManagementImagesCore::getWsObject()
- Visibility: public
- Source: classes/webservice/WebserviceSpecificManagementImages.php line 115
mixed WebserviceSpecificManagementImagesCore::manage()
- Visibility: public
- Source: classes/webservice/WebserviceSpecificManagementImages.php line 168
mixed WebserviceSpecificManagementImagesCore::manageCustomizationImages()
- Visibility: protected
- Source: classes/webservice/WebserviceSpecificManagementImages.php line 674
boolean WebserviceSpecificManagementImagesCore::manageDeclinatedImages(string $directory)
Management of normal images (as categories, suppliers, manufacturers and stores)
- Visibility: protected
- Source: classes/webservice/WebserviceSpecificManagementImages.php line 633
- $directory string - the file path of the root of the images folder type
boolean WebserviceSpecificManagementImagesCore::manageDeclinatedImagesCRUD(boolean $filename_exists, string $filename, array $image_sizes, string $directory)
Management of normal images CRUD
- Visibility: protected
- Source: classes/webservice/WebserviceSpecificManagementImages.php line 774
- $filename_exists boolean - if the filename exists
- $filename string - the image path
- $image_sizes array - The
- $directory string
mixed WebserviceSpecificManagementImagesCore::manageDefaultDeclinatedImages($directory, $normal_image_sizes)
- Visibility: protected
- Source: classes/webservice/WebserviceSpecificManagementImages.php line 437
- $directory mixed
- $normal_image_sizes mixed
mixed WebserviceSpecificManagementImagesCore::manageEntityDeclinatedImages($directory, $normal_image_sizes)
- Visibility: protected
- Source: classes/webservice/WebserviceSpecificManagementImages.php line 523
- $directory mixed
- $normal_image_sizes mixed
boolean WebserviceSpecificManagementImagesCore::manageGeneralImages()
Management of general images
- Visibility: protected
- Source: classes/webservice/WebserviceSpecificManagementImages.php line 348
boolean WebserviceSpecificManagementImagesCore::manageImages()
Management of images URL segment
- Visibility: protected
- Source: classes/webservice/WebserviceSpecificManagementImages.php line 181
mixed WebserviceSpecificManagementImagesCore::manageListDeclinatedImages($directory, $normal_image_sizes)
- Visibility: protected
- Source: classes/webservice/WebserviceSpecificManagementImages.php line 479
- $directory mixed
- $normal_image_sizes mixed
mixed WebserviceSpecificManagementImagesCore::manageProductImages()
- Visibility: protected
- Source: classes/webservice/WebserviceSpecificManagementImages.php line 652
\WebserviceSpecificManagementInterface WebserviceSpecificManagementImagesCore::setObjectOutput(\WebserviceOutputBuilderCore $obj)
- Visibility: public
- Source: classes/webservice/WebserviceSpecificManagementImages.php line 98
mixed WebserviceSpecificManagementImagesCore::setWsObject(\WebserviceRequestCore $obj)
- Visibility: public
- Source: classes/webservice/WebserviceSpecificManagementImages.php line 109
string WebserviceSpecificManagementImagesCore::writeImageOnDisk(string $base_path, string $new_path, integer $dest_width, integer $dest_height, array $image_types, string $parent_path)
Write the image on disk
- Visibility: protected
- Source: classes/webservice/WebserviceSpecificManagementImages.php line 883
- $base_path string
- $new_path string
- $dest_width integer
- $dest_height integer
- $image_types array
- $parent_path string
boolean WebserviceSpecificManagementImagesCore::writePostedImageOnDisk(string $reception_path, integer $dest_width, integer $dest_height, array $image_types, string $parent_path)
Write the posted image on disk
- Visibility: protected
- Source: classes/webservice/WebserviceSpecificManagementImages.php line 1003
- $reception_path string
- $dest_width integer
- $dest_height integer
- $image_types array
- $parent_path string