PageRenderTime 55ms CodeModel.GetById 31ms RepoModel.GetById 0ms app.codeStats 0ms

/saf/lib/XML/RelaxNG/Type/Empty.php

https://github.com/lux/siteforge
PHP | 15 lines | 10 code | 2 blank | 3 comment | 1 complexity | d828fc11e76158d8a08359e542b13811 MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.1, Apache-2.0
  1. <?php
  2. /**
  3. * @package XML
  4. */
  5. class RNGType_empty extends RNGType {
  6. function validate ($value) {
  7. if (empty ($value)) {
  8. return true;
  9. }
  10. return false;
  11. }
  12. }
  13. ?>