PageRenderTime 42ms CodeModel.GetById 17ms RepoModel.GetById 1ms app.codeStats 0ms

/lib/filters/ucfirst.php

https://github.com/sahid/ootemplate
PHP | 33 lines | 8 code | 2 blank | 23 comment | 0 complexity | e4dfc10af1fadd4865783becf55aa044 MD5 | raw file
Possible License(s): LGPL-3.0
  1. <?php
  2. /**
  3. * @project OOTemplate
  4. * @license GNU Lesser General Public License 3
  5. * @copyright (c) Ferdjaoui Sahid 2009
  6. *
  7. * This file is part of OOTemplate.
  8. *
  9. * OOTemplate 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. * OOTemplate 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. * GNU General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU General Public License
  20. * along with OOTemplate. If not, see <http://www.gnu.org/licenses/>.
  21. *
  22. * @author Ferdjaoui Sahid <sahid.ferdjaoui@gmail.com>
  23. * @package template
  24. */
  25. class ucfirst extends OOTemplate_FilterAdapter
  26. {
  27. public function resolve (OOTemplate_Context $context)
  28. {
  29. return ucfirst ($this->_resolved);
  30. }
  31. }