Plentymarkets interface documentation
AutomaticEmail
Contracts
Models
AutomaticEmail
A container with all needed data to initiate the automatic email delivery.
Namespace
Plenty\Modules\Helper\AutomaticEmail\Models
Methods
public toArray()
Returns this model as an array.
AutomaticEmailContact
The automatic email data for contact type emails.
Namespace
Plenty\Modules\Helper\AutomaticEmail\Models
Methods
public toArray()
Returns this model as an array.
AutomaticEmailData
The abstract base class for all automatic email data. Provides constants for the email type to be used.
Namespace
Plenty\Modules\Helper\AutomaticEmail\Models
Methods
public toArray()
Returns this model as an array.
AutomaticEmailNewsletter
The automatic email data for newsletter type emails.
Namespace
Plenty\Modules\Helper\AutomaticEmail\Models
Methods
public toArray()
Returns this model as an array.
Helper
Contracts
UrlBuilderRepositoryContract
Repository Contract for retrieving image and item URLs
Namespace
Plenty\Modules\Helper\Contracts
Methods
public getImageUrl($path, $plentyId = null, $size = "", $fileType = "", $isExternalImage = false):string
Get the URL of an image.
Name |
Type |
Description |
|
||
|
||
|
||
|
||
|
public getItemUrl($itemId, $plentyId, $urlContent = "", $lang = "de", $useHttpsDomain = true):string
Get the URL of an item.
Name |
Type |
Description |
|
||
|
||
|
||
|
||
|
Models
Services
StringEncodingService
Service for encoding strings
Namespace
Plenty\Modules\Helper\Services
Methods
public toDatabase($sString):string
Method converts a string to self::DATABASE_ENCODING coding
Name |
Type |
Description |
|
public toEmail($sString):string
Method converts a string to self::EMAIL_ENCODING coding
Name |
Type |
Description |
|
public toWebshop($sString, $sTargetEncoding = self::WEBSHOP_ENCODING):string
Method converts a string to self::WEBSHOP_ENCODING coding
Name |
Type |
Description |
|
||
|
public toAdmin($sString, $sTargetEncoding = self::ADMIN_ENCODING):string
Method converts a string to the sended coding. Default will be self::ADMIN_ENCODING coding used
Name |
Type |
Description |
|
||
|
public toGwt($sString):string
Method converts a string to the sended coding
Name |
Type |
Description |
|
public toExport($sString, $sTargetEncoding = self::EXPORT_ENCODING):string
Method converts a string to the sended coding. Default will be self::EXPORT_ENCODING coding used
Name |
Type |
Description |
|
||
|
public toLegacy($sString):string
Method converts a string to self::LEGACY_ENCODING coding
Name |
Type |
Description |
|
public toPDF($sString, $sTargetEncoding = self::PDF_ENCODING):string
Method converts a string to self::PDF_ENCODING coding
Name |
Type |
Description |
|
The string to be encoded. |
|
|
The target encoding (since plentymarkets version 5.100). [optional, default=PlentyCoding::PDF_ENCODING] |
public toXML($string, $targetEncoding = self::XML_ENCODING):string
Method converts a string to self::XML_ENCODING coding.
Name |
Type |
Description |
|
The string to be encoded. |
|
|
The target encoding (since plentymarkets version 5.100). [optional, default=PlentyCoding::XML_ENCODING] |
public detect_encoding($sString):string
Method returns the encoding of one string
Name |
Type |
Description |
|
public convertArray($array, $sTargetEncoding = self::UTF8_ENCODING, $convertKey = false):array
Method converts a multidimensional array to the desired coding
Name |
Type |
Description |
|
||
|
||
|
public cutTextForDB($text, $lenghtIntoDB):string
cut the given text to fit for db insert.
Name |
Type |
Description |
|
||
|
public isValidUtf8($string):int
Checks whether the given string is valid utf-8.
Name |
Type |
Description |
|
WebstoreHelper
Webstore Helper Service
Namespace
Plenty\Modules\Helper\Services
Methods
public getCurrentWebstoreConfiguration():Plenty\Modules\System\Models\WebstoreConfiguration
Return type: WebstoreConfiguration
Get the configuration of the current webstore.