public function __construct()
 {
     parent::__construct();
     $this->_videosearchQuery = filter_input(INPUT_POST, 'videosearchQuery');
     $this->_addnewVideo = filter_input(INPUT_POST, 'add_video');
     $this->_status = filter_input(INPUT_GET, 'status');
     $this->_searchBtn = filter_input(INPUT_POST, 'videosearchbtn');
     $this->_update = filter_input(INPUT_GET, 'update');
     $this->_add = filter_input(INPUT_GET, 'add');
     $this->_del = filter_input(INPUT_GET, 'del');
     $this->_featured = filter_input(INPUT_GET, 'featured');
     $this->_orderDirection = filter_input(INPUT_GET, 'order');
     $this->_adminorder_direction = $this->get_order_details();
     $this->_orderBy = filter_input(INPUT_GET, 'orderby');
     $this->_settingsData = $this->get_settingsdata();
 }
 /**
  * Constructor function used to get parameters from request URL
  */
 public function __construct()
 {
     parent::__construct();
     global $wpdb;
     $this->_wpdb = $wpdb;
     /** Get videosearchQuery param for videos */
     $this->_videosearchQuery = filter_input(INPUT_POST, 'videosearchQuery');
     /** Get add_video param for videos */
     $this->_addnewVideo = filter_input(INPUT_POST, 'add_video');
     /** Get status param for videos */
     $this->_status = filter_input(INPUT_GET, 'status');
     /** Get videosearchbtn param for videos */
     $this->_searchBtn = filter_input(INPUT_POST, 'videosearchbtn');
     /** Get update param for videos */
     $this->_update = filter_input(INPUT_GET, 'update');
     /** Get add param for videos */
     $this->_add = filter_input(INPUT_GET, 'add');
     /** Get del param for videos */
     $this->_del = filter_input(INPUT_GET, 'del');
     /** Get featured param for videos */
     $this->_featured = filter_input(INPUT_GET, 'featured');
     /** Get order param for videos */
     $this->_orderDirection = filter_input(INPUT_GET, 'order');
     /** Get orderby param for videos*/
     $this->_orderBy = filter_input(INPUT_GET, 'orderby');
     /** Set order by fields as array */
     $orderBy = array('id', 'title', 'author', 'category', 'fea', 'publish', 'date', 'ordering');
     $this->_order = '';
     /** Get order by fields nad direction for videos */
     if (isset($this->_orderBy) && in_array($this->_orderBy, $orderBy)) {
         $this->_order = $this->_orderBy;
     } else {
         $this->_orderDirection = 'DESC';
     }
     /** Get plugin settings date */
     $this->_settingsData = getPluginSettings();
     $this->_player_colors = unserialize($this->_settingsData->player_colors);
     /** Get upload directory path */
     $this->_srt_path = getUploadDirPath();
     $this->_adminorder_direction = $this->_player_colors['recentvideo_order'];
 }