* @link http://wp-dreams.com, http://codecanyon.net/user/wpdreams/portfolio
* @copyright Copyright (c) 2017, Ernest Marcinko
*/
class wd_UserMeta extends wpdreamsType {
private $args = array();
private $e_data;
function getType()
{
parent::getType();
$this->processData();
$inst = self::$_instancenumber; // Need this, as the static variable is overwritten when the callback is created
?>
data) && isset($this->data['args']) )
$this->args = array_merge($this->args, $this->data['args']);
if ( is_array($this->data) && isset($this->data['value']) ) {
// If called from back-end non-post context
$this->e_data = $this->decode_param($this->data['value']);
$this->data = $this->encode_param($this->data['value']);
} else {
// POST method or something else
$this->e_data = $this->decode_param($this->data);
$this->data = $this->encode_param($this->data);
}
/**
* At this point the this->data variable surely contains the encoded data, no matter what.
*/
}
public final function getData() {
return $this->data;
}
public final function getSelected() {
return $this->e_data;
}
}
}