source: trunk/prototype/app/service.php @ 5341

Revision 5341, 1.7 KB checked in by wmerlotto, 12 years ago (diff)

Ticket #2434 - Commit inicial do novo módulo de agenda do Expresso - expressoCalendar

Line 
1<?php
2
3
4// interface Service
5// {
6// //---------------
7//
8//     public function load   ( $concept, $parents = false, $id = false );
9//
10// //---------------
11//
12//     public function search ( $justthese = false, $params = false, $criteria = false );
13//
14// //---------------
15//
16//     public function delete ( $justthese = false, $params = false, $criteria = false );
17//
18// //---------------
19//   
20//     public function update ( $data,              $params = false, $criteria = false );
21//
22// //---------------
23//
24//     public function create ( $data,              $params = false );
25//
26// //---------------
27//
28//     public function connect( $config );
29//
30//     public function close();
31//
32//     public function setup();
33//
34//     public function teardown();
35// }
36
37
38interface Service
39{
40//---------------
41
42    public function find     ( $uri, $justthese = false, $criteria = false );
43
44    public function read     ( $uri, $justthese = false/*, $criteria = false*/ );
45
46//---------------
47
48    public function deleteAll( $uri, $justthese = false, $criteria = false );
49
50    public function delete   ( $uri, $justthese = false/*, $criteria = false*/ );// avaliar
51
52//---------------
53
54    public function replace  ( $uri, $data, $criteria = false );
55
56    public function update   ( $uri, $data/*, $criteria = false*/ );
57
58//---------------
59
60    public function create   ( $uri, $data/*, $criteria = false*/ );
61
62//---------------
63
64    public function open     ( $config );
65
66    public function close    ();
67
68
69    public function begin     ( $uri );
70
71    public function commit    ( $uri );
72
73    public function rollback  ( $uri );
74
75
76    public function setup     ();
77
78    public function teardown  ();
79}
Note: See TracBrowser for help on using the repository browser.