Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 93f48765

Von Jan Büren vor fast 3 Jahren hinzugefügt

  • ID 93f4876585007a50a0821ebe499a4153930ddc7d
  • Vorgänger 0139c7af
  • Nachfolger e33fddca

ShopConnector::Base POD Doku was die Schnittstelle erwartet

Unterschiede anzeigen:

SL/ShopConnector/Base.pm
17 17

  
18 18
sub get_categories { die 'get_categories needs to be implemented' }
19 19

  
20
sub get_version    { die 'get_version needs to be implemented' }
20
sub get_version    {
21

  
22
  die 'get_version needs to be implemented';
23
  # has to return a hashref with this structure:
24
  # version has to return the connection error message
25
  my $connect = {};
26
  $connect->{success}         = 0 || 1;
27
  $connect->{data}->{version} = '1234';
28
  return $connect;
29
}
21 30

  
22 31
sub set_orderstatus { die 'set_orderstatus needs to be implemented' }
23 32

  
......
52 61

  
53 62
=item C<get_version>
54 63

  
64
IMPORTANT: This call is used to test the connection and if succesful
65
it returns the version number of the shop. If not succesful the
66
returning function has to make sure a error string is returned in
67
the same data structure. Details of the returning hashref:
68

  
69
 my $connect = {};
70
 $connect->{success}         = 0 || 1;
71
 $connect->{data}->{version} = '1234';
72
 return $connect;
73

  
55 74
=item C<set_orderstatus>
56 75

  
57 76
=back

Auch abrufbar als: Unified diff