PageRenderTime 49ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 0ms

/lib/sly/Form/Empty.php

https://bitbucket.org/webvariants/varisale-coupon
PHP | 32 lines | 17 code | 4 blank | 11 comment | 0 complexity | 60e8f6f76daa7035ea2096f744c13d39 MD5 | raw file
  1. <?php
  2. /*
  3. * Copyright (c) 2013, webvariants GbR, http://www.webvariants.de
  4. *
  5. * This file is released under the terms of the MIT license. You can find the
  6. * complete text in the attached LICENSE file or online at:
  7. *
  8. * http://www.opensource.org/licenses/mit-license.php
  9. */
  10. /**
  11. * @ingroup form
  12. */
  13. class sly_Form_Empty extends sly_Form_ElementBase implements sly_Form_IElement {
  14. public function __construct($id = null) {
  15. $id = $id === null ? 'a'.uniqid() : $id;
  16. parent::__construct('', '', '', $id, array('class', 'style', 'id'));
  17. $this->addFormRowClass('empty');
  18. }
  19. public function render() {
  20. return '';
  21. }
  22. public function isContainer() {
  23. return true;
  24. }
  25. public function getDisplayValue() {
  26. return '';
  27. }
  28. }