/** * Constructor function used to get parameters from request URL */ public function __construct() { parent::__construct(); /** Get videoadsadd param from request */ $this->_addnewVideoad = filter_input(INPUT_POST, 'videoadsadd'); /** Get videoadsearchbtn param from request */ $this->_searchBtn = filter_input(INPUT_POST, 'videoadsearchbtn'); /** Get videoadssearchQuery param from request */ $this->_search = filter_input(INPUT_POST, 'videoadssearchQuery'); /** Get videoadssearchQuery param from request */ $this->_videoadsearchQuery = filter_input(INPUT_POST, 'videoadssearchQuery'); /** Get status param from request */ $this->_status = filter_input(INPUT_GET, 'status'); /** Get update param from request */ $this->_update = filter_input(INPUT_GET, 'update'); /** Get add param from request */ $this->_add = filter_input(INPUT_GET, 'add'); /** Get del param from request */ $this->_del = filter_input(INPUT_GET, 'del'); /** Get order param from request */ $this->_orderDirection = filter_input(INPUT_GET, 'order'); /** Get orderby param from request */ $this->_orderBy = filter_input(INPUT_GET, 'orderby'); /** Get publish param from request */ $this->_publish = filter_input(INPUT_GET, 'publish'); /** Get updatebutton param from request */ $this->_settingsUpdate = filter_input(INPUT_POST, 'updatebutton'); /** Get videogoogleadId param from request */ $this->_videogoogleadsenseId = absint(filter_input(INPUT_GET, 'videogoogleadId')); /** Get videogoogleadId param from request */ $this->_videogoogleadupdateId = absint(filter_input(INPUT_POST, 'videogoogleadId')); }
public function __construct() { ## contructor starts parent::__construct(); $this->_addnewVideoad = filter_input(INPUT_POST, 'videoadsadd'); $this->_status = filter_input(INPUT_GET, 'status'); $this->_searchBtn = filter_input(INPUT_POST, 'videoadsearchbtn'); $this->_videoadsearchQuery = filter_input(INPUT_POST, 'videoadssearchQuery'); $this->_update = filter_input(INPUT_GET, 'update'); $this->_add = filter_input(INPUT_GET, 'add'); $this->_del = filter_input(INPUT_GET, 'del'); $this->_orderDirection = filter_input(INPUT_GET, 'order'); $this->_orderBy = filter_input(INPUT_GET, 'orderby'); $this->_publish = filter_input(INPUT_GET, 'publish'); $this->_settingsUpdate = filter_input(INPUT_POST, 'updatebutton'); $this->_videogoogleadsenseId = absint(filter_input(INPUT_GET, 'videogoogleadId')); $this->_videogoogleadupdateId = absint(filter_input(INPUT_POST, 'videogoogleadId')); $this->_search = filter_input(INPUT_POST, 'videoadssearchQuery'); }