/** * Callback Method for Dailymotion cloud video gallery page * */ public function getDailymotionCloudVideos($search_title = '', $sortby = '-created') { $dailymotioncloud = new DailymotionCloudOwnMethod($this->dcuname, $this->dcpass); $pn = isset($_GET['pagenum']) ? preg_replace('#[^0-9]#i', '', $_GET['pagenum']) : 1; $itemsPerPage = (int) self::ITEMS_PER_PAGE; $return_dmcloud_videos = $dailymotioncloud->getDailymotionCloudVideos((int) $pn, $itemsPerPage, $search_title, $sortby); return $return_dmcloud_videos; }
public function getMyDmcVideoMetaboxTabVideos() { $pn = isset($_POST['pagenumber']) ? $_POST['pagenumber'] : 1; $searchTitle = isset($_POST['title']) && $_POST['title'] != 'notitle' ? $_POST['title'] : ''; $itemsPerPage = 5; $dailymotion_cloud = new DailymotionCloudOwnMethod($this->dcuname, $this->dcpass); $dmcvideos = $dailymotion_cloud->getDailymotionCloudVideos((int) $pn, $itemsPerPage, $searchTitle); print json_encode($dmcvideos); exit; }