1: <?php
2: /**
3: * Copyright (c) CMNWorks
4: *
5: * Licensed under The MIT License
6: * For full copyright and license information, please see the LICENSE.txt
7: * Redistributions of files must retain the above copyright notice.
8: *
9: * @copyright Copyright (c) CMNWorks Christopher M. Natan
10: * @author Christopher M. Natan
11: * @link http://cmnworks.com
12: * @since 1.8.8
13: * @license http://www.opensource.org/licenses/mit-license.php MIT License
14: */
15: namespace Cakestrap\View\Helper;
16:
17: /**
18: * Use the well as a simple effect on an element to give it an inset effect.
19: *
20: * <code>
21: * <?php
22: * echo $this->Cakestrap->Well()->content("Look, I'm in a large well!")->set()
23: * ?>
24: * </code>
25: *
26: * @method content(string $content)
27: *
28: * @package Cakestrap\View\Helper
29: * @link http://getbootstrap.com/components/#wells
30: */
31: class WellHelper extends Basic
32: {
33: /**
34: * Set all defined values.
35: * This will return the final html template.
36: *
37: * @return string
38: */
39: public function set()
40: {
41: $container = $this->_stringTemplate->format('container', ['container' => $this->content]);
42: return $container;
43: }
44: }