* @link http://wp-dreams.com, http://codecanyon.net/user/anago/portfolio
* @copyright Copyright (c) 2014, Ernest Marcinko
*/
class wpdreamsNumericUnit extends wpdreamsType {
private $units, $numeric, $selected;
function getType() {
parent::getType();
$this->processData();
echo "
";
echo "
";
echo "
";
echo "
";
echo "
";
}
function processData() {
$this->units = $this->data['units'];
$this->data['value'] = str_replace("\n", "", $this->data['value']);
preg_match("/([0-9]+)(.*)/", $this->data['value'], $matches);
$this->numeric = $matches[1];
$this->selected = $matches[2];
}
final function getData() {
return $this->data;
}
}
}