/** * making sure all variables ar mysql safe */ function store() { if (function_exists('base64_serialize')) { $this->submission = base64_serialize($this->submission); } parent::store(); }
function base64_serialize($ary) { if (is_array($ary)) { foreach ($ary as $k => $v) { if (is_array($v)) { $ritorno[$k] = base64_serialize($v); } else { $ritorno[$k] = base64_encode($v); } } } else { return false; } return serialize($ritorno); }
/** * making sure all variables ar mysql safe */ function store() { $this->capabilities = base64_serialize($this->capabilities); parent::store(); $this->capabilities = base64_unserialize($this->capabilities); }