Base.inc 765 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace Memcache_UI\Page {
  3. use Memcache_UI\Core\Element;
  4. /**
  5. * Provide common layout elements to child classes.
  6. *
  7. * - header
  8. */
  9. class Base extends \Memcache_UI\Core\Page {
  10. function build() {
  11. $this->setBody(
  12. new Element('div', array('class' => array('head')),
  13. new Element('h1', array('class' => array('memcache')), array(
  14. new Element('span', array('class' => array('logo')),
  15. new Element('a', array('href' => 'http://pecl.php.net/package/memcache'), 'memcache')
  16. ),
  17. new Element('span', array('class' => array('nameinfo')), 'memcache_ui.php from an idea by <a href="http://livebookmark.net">Harun Yayli</a>'),
  18. ))),
  19. 'header'
  20. );
  21. }
  22. }
  23. }