draggableviews_handler.inc 987 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. /**
  3. * @file
  4. * Base plugin implementation.
  5. */
  6. /**
  7. * Parent class for all handlers.
  8. */
  9. class draggableviews_handler {
  10. /**
  11. * Get the weight value.
  12. *
  13. * @param object $field
  14. * Draggableviews field handler. View is $field->view,
  15. * to get a row $field->view->result[$index].
  16. * @param int $index
  17. * Index of the row.
  18. *
  19. * @return int
  20. * Weight value.
  21. */
  22. public function get($field, $index) {}
  23. /**
  24. * Save weight value.
  25. *
  26. * @param $form_state
  27. * Attay of form state of the form.
  28. * View object $form_state['values']['view'].
  29. */
  30. public function set($form_state) {}
  31. /**
  32. * Form with settings of the handler.
  33. *
  34. * @param object $field
  35. * Draggableviews field handler.
  36. *
  37. * @return array
  38. * Form array.
  39. */
  40. public function options_form($field) {}
  41. /**
  42. * Settings form default values.
  43. *
  44. * @return array
  45. * Array with default values.
  46. */
  47. public function option_definition() {}
  48. }