NodeHome.php 1001 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /**
  3. * Subclass for representing a row from the 'node__home' table.
  4. *
  5. * @package lib.model
  6. */
  7. class NodeHome extends BaseNodeHome implements ICatalyzLayoutProvider {
  8. /**
  9. * NodeHome::getAvailableLayouts()
  10. *
  11. * @return
  12. */
  13. public function getAvailableLayouts()
  14. {
  15. return array('katao/default');
  16. }
  17. public function updateFromRequest($node, $request, $previewMode)
  18. {
  19. $culture = $request->getParameter('culture');
  20. $this->setEditoTitle($request->getParameter('edito_title'), $culture);
  21. $this->setEditoContent($request->getParameter('edito_content'), $culture);
  22. }
  23. public function getValidSubClasses()
  24. {
  25. $result = array();
  26. return $result;
  27. }
  28. static function getNodeClassCaption()
  29. {
  30. return 'Page d\'accueil';
  31. }
  32. public static function getNodeClassDescription()
  33. {
  34. return '';
  35. }
  36. static public function getLayoutAreas()
  37. {
  38. return array();
  39. }
  40. }