Blog.php 667 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * 测试
  4. * @author walkor <worker-man@qq.com>
  5. */
  6. class Blog
  7. {
  8. public static function getByBlogId($blog_id)
  9. {
  10. return array(
  11. 'blog_id' => $blog_id,
  12. 'title'=> 'workerman is a high performance RPC server framework for network applications implemented in PHP using libevent',
  13. 'content' => 'this is content ...',
  14. );
  15. }
  16. public static function getTitleListByUid($uid)
  17. {
  18. return array(
  19. 'blog title 1',
  20. 'blog title 2',
  21. 'blog title 3',
  22. 'blog title 4',
  23. 'blog title 5',
  24. );
  25. }
  26. }