processor.php 597 B

1234567891011121314151617181920212223
  1. <?php
  2. /**
  3. * [WeEngine System] Copyright (c) 2014 WE7.CC
  4. * WeEngine is NOT a free software, it under the license terms, visited http://www.we7.cc/ for more details.
  5. */
  6. defined('IN_IA') or exit('Access Denied');
  7. class VideoModuleProcessor extends WeModuleProcessor {
  8. public function respond() {
  9. global $_W;
  10. $rid = $this->rule;
  11. $item = table('video_reply')->where(array('rid' => $rid))->get();
  12. if (empty($item)) {
  13. return false;
  14. }
  15. return $this->respVideo(array(
  16. 'MediaId' => $item['mediaid'],
  17. 'Title' => $item['title'],
  18. 'Description' => $item['description'],
  19. ));
  20. }
  21. }