Package DE_EPAGES::FactFinder::API::FactFinder
some helper functions
@EXPORT_OK |
Functions
- BuildMatrix
- CreateChannel
- CreateUser
- DeleteChannel
- DeleteShop
- DeleteUser
- ExistsChannel
- ExistsUser
- GetAllChannels
- GetAllUsers
- GetProductsFromSearchResult
- GetRecommendation
- GetVisibleLanguages
- InitShop
- IsTriggerExtraScheduleAllowed
- SanityCheck
- TriggerExtraSchedule
- UpdateUser
- UploadFile
BuildMatrix
Rebuilds recommendation engine matrix
Syntax |
BuildMatrix( $Shop, $Channel, $Remote ); |
Input |
|
CreateChannel
Creates a factfinder channel remote and locally in the db
Syntax |
$Channel = $Object->CreateChannel( $Shop, $Language, $Folder, $Remote ); |
Input |
|
Return |
|
CreateUser
Creates a FACT-Finder User
Syntax |
CreateUser($Shop); |
Input |
|
Return |
|
DeleteChannel
Deletes a remote channel
Syntax |
$Object->DeleteChannel( $Shop, $Channel, $Remote); |
Example |
$Object->DeleteChannel( $Shop, $Channel ); |
Input |
|
DeleteShop
Removes FACT-FINDER account from shop.
Syntax |
DeleteShop( $Shop ); |
Input |
|
DeleteUser
deletes a remote user
Syntax |
$Object->DeleteUser( $Shop, $Remote); |
Example |
$Object->DeleteUser( $Shop, $Remote ); |
Input |
|
ExistsChannel
Checks if a channel exists.
Syntax |
$Exists = ExistsChannel( $Shop, $Remote ); |
Input |
|
Return |
|
ExistsUser
Get FACT-Finder Userlist
Syntax |
ExistsUser( $Shop, $Remote ); |
Input |
|
Return |
|
GetAllChannels
Lists all remote channels
Syntax |
$List = GetAllChannels( $Shop, $Remote ); |
Input |
|
Return |
|
GetAllUsers
Get FACT-Finder Userlist
Syntax |
GetAllUsers( $Shop, $Remote); |
Example |
$Users = GetAllUsers( $Shop, $Remote ); |
Input |
|
Return |
|
GetProductsFromSearchResult
Returns an array of products (tle-hashed) for use in SF
Syntax |
GetProductsFromSearchResult( $Shop, $aRecord ); |
Input |
|
Return |
|
GetRecommendation
gets product list from FACT-Finder recommendation engine.
Syntax |
GetRecommendation( $Product, $Channel ); |
Input |
|
Return |
|
GetVisibleLanguages
returns the locales selected in the shop
Syntax |
GetVisibleLanguages($Shop); |
Input |
|
Return |
|
InitShop
Initializes Shop for FACT-FINDER
Syntax |
InitShop( $Shop ); |
Input |
|
Return |
|
IsTriggerExtraScheduleAllowed
Returns true if an extra schedule can be triggered
Syntax |
$Object->IsTriggerExtraScheduleAllowed( $Shop, $Input2); |
Input |
|
Return |
|
SanityCheck
Check if all necessary system vars are set. If not the Error('RequiredValueMissing') is thrown.
Syntax |
SanityCheck( ); |
Return |
|
TriggerExtraSchedule
Mark shop for extra export scheduler
Syntax |
TriggerExtraSchedule( $Shop ); |
Input |
|
UpdateUser
Update user permissions after a change in the channel list.
Syntax |
UpdateUser($Shop, $Remote) |
Input |
|
UploadFile
Upload product export file
Syntax |
$Object->UploadFile( $Shop, $Channel); |
Input |
|