1: <?php
2: /**
3: * PHP version 5
4: * @package generalDriver
5: * @author Christian Schiffler <c.schiffler@cyberspectrum.de>
6: * @author Stefan Heimes <stefan_heimes@hotmail.com>
7: * @author Tristan Lins <tristan.lins@bit3.de>
8: * @copyright The MetaModels team.
9: * @license LGPL.
10: * @filesource
11: */
12:
13: namespace DcGeneral\View;
14:
15: use DcGeneral\EnvironmentInterface;
16:
17: // TODO: we need to flesh this out some more out and add real interface methods. Currently this interface is rather useless.
18: interface ViewInterface
19: {
20: /**
21: * Set the environment.
22: *
23: * @param EnvironmentInterface $environment
24: *
25: * @return ViewInterface
26: */
27: public function setEnvironment(EnvironmentInterface $environment);
28:
29: /**
30: * Retrieve the attached environment.
31: *
32: * @return EnvironmentInterface
33: */
34: public function getEnvironment();
35:
36: /**
37: * Handle an ajax request.
38: *
39: * @return void
40: */
41: public function handleAjaxCall();
42:
43: public function paste();
44:
45: public function copy();
46:
47: public function copyAll();
48:
49: public function create();
50:
51: public function cut();
52:
53: public function cutAll();
54:
55: public function delete();
56:
57: public function edit();
58:
59: public function move();
60:
61: public function show();
62:
63: /**
64: * Overview listing over all items in the current scope.
65: *
66: * This is the default action to perform if no other action has been specified in the URL.
67: *
68: * @return string
69: */
70: public function showAll();
71:
72: public function undo();
73:
74: public function generateAjaxPalette($strSelector);
75: }
76: