/lib/sly/Form/Empty.php
PHP | 32 lines | 17 code | 4 blank | 11 comment | 0 complexity | 60e8f6f76daa7035ea2096f744c13d39 MD5 | raw file
- <?php
- /*
- * Copyright (c) 2013, webvariants GbR, http://www.webvariants.de
- *
- * This file is released under the terms of the MIT license. You can find the
- * complete text in the attached LICENSE file or online at:
- *
- * http://www.opensource.org/licenses/mit-license.php
- */
- /**
- * @ingroup form
- */
- class sly_Form_Empty extends sly_Form_ElementBase implements sly_Form_IElement {
- public function __construct($id = null) {
- $id = $id === null ? 'a'.uniqid() : $id;
- parent::__construct('', '', '', $id, array('class', 'style', 'id'));
- $this->addFormRowClass('empty');
- }
- public function render() {
- return '';
- }
- public function isContainer() {
- return true;
- }
- public function getDisplayValue() {
- return '';
- }
- }