* @link http://wp-dreams.com, http://codecanyon.net/user/anago/portfolio
* @copyright Copyright (c) 2016, Ernest Marcinko
*/
class wd_DateInterval extends wpdreamsType {
private $raw, $selected;
function getType() {
parent::getType();
$this->processData();
?>
raw = explode("|", $this->data);
if ( $this->raw[5] != "" )
$this->raw[5] = explode(",", $this->raw[5]);
if ( $this->raw[6] != "" )
$this->raw[6] = explode(",", $this->raw[6]);
$this->selected = array(
"mode" => $this->raw[0],
"from" => $this->raw[1],
"to" => $this->raw[2],
"fromDate" => $this->raw[3],
"toDate"=> $this->raw[4],
"fromInt"=> $this->raw[5],
"toInt" => $this->raw[6]
);
}
final function getData() {
return $this->data;
}
final function getSelected() {
return $this->selected;
}
}
}