KXStudio Website https://kx.studio/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.0KB

  1. <?php
  2. /**
  3. * Interface: Feather
  4. * Describes the functions required by Feather implementations.
  5. */
  6. interface Feather {
  7. /**
  8. * Function: submit
  9. * Handles post submitting.
  10. *
  11. * Returns:
  12. * The <Post> object created.
  13. */
  14. public function submit();
  15. /**
  16. * Function: update
  17. * Handles updating a post.
  18. */
  19. public function update($post);
  20. /**
  21. * Function: title
  22. * Returns the appropriate source to be treated as a "title" of a post.
  23. * If there is no immediate solution, you may use <Post.title_from_excerpt>.
  24. */
  25. public function title($post);
  26. /**
  27. * Function: excerpt
  28. * Returns the appropriate source, unmodified, to be used as an excerpt of a post.
  29. */
  30. public function excerpt($post);
  31. /**
  32. * Function: feed_content
  33. * Returns the appropriate content for a feed.
  34. */
  35. public function feed_content($post);
  36. }