1: <?php
2:
3: /**
4: * Picon Framework
5: * http://code.google.com/p/picon-framework/
6: *
7: * Copyright (C) 2011-2012 Martin Cassidy <martin.cassidy@webquub.com>
8:
9: * Picon Framework is free software: you can redistribute it and/or modify
10: * it under the terms of the GNU General Public License as published by
11: * the Free Software Foundation, either version 3 of the License, or
12: * (at your option) any later version.
13:
14: * Picon Framework is distributed in the hope that it will be useful,
15: * but WITHOUT ANY WARRANTY; without even the implied warranty of
16: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17: * General Public License for more details.
18:
19: * You should have received a copy of the GNU General Public License
20: * along with Picon Framework. If not, see <http://www.gnu.org/licenses/>.
21: * */
22:
23: namespace picon;
24:
25: /**
26: * A border works in the same way as a panel but does ont replace the origonal
27: * content of the HTML tag it is added to.
28: *
29: * The border mark-up:
30: *
31: * <picon:border>
32: * <h2>border heading</h2>
33: * <picon:body />
34: * <p>other border content</p>
35: * </picon:border>
36: *
37: * And in the composing class:
38: *
39: * <h1>heading</h1>
40: * <div picon:id="myBorder">
41: * Border content will wrap this content
42: * </div>
43: * <p>other mark-up...</p>
44: *
45: * Would be rendered as:
46: *
47: * <h1>heading</h1>
48: * <div picon:id="myBorder">
49: * <h2>border heading</h2>
50: * Border content will wrap this content
51: * <p>other border content</p>
52: * </div>
53: * <p>other mark-up...</p>
54: *
55: * @author Martin Cassidy
56: * @package web/markup/html/panel
57: */
58: class Border extends MarkupContainer
59: {
60: protected function getMarkUpSource()
61: {
62: return new BorderMarkupSourcingStratagy();
63: }
64:
65: public function getBorderBody()
66: {
67: return new TransparentMarkupContainer('picon_body');
68: }
69: }
70:
71: ?>
72: