* @link http://wp-dreams.com, http://codecanyon.net/user/anago/portfolio
* @copyright Copyright (c) 2014, Ernest Marcinko
*/
class wpdreamsCustomFields extends wpdreamsType
{
function getType()
{
parent::getType();
$this->processData();
$inst = self::$_instancenumber; // Need this, as the static variable is overwritten when the callback is created
echo "
";
}
function processData() {
$this->data = str_replace("\n", "", $this->data);
if ($this->data != "")
$this->selected = explode("|", $this->data);
else
$this->selected = null;
}
final function getData() {
return $this->data;
}
final function getSelected() {
return $this->selected;
}
}
}