/**
  * making sure all variables ar mysql safe
  */
 function store()
 {
     if (function_exists('base64_serialize')) {
         $this->submission = base64_serialize($this->submission);
     }
     parent::store();
 }
Ejemplo n.º 2
0
 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);
 }
Ejemplo n.º 3
0
 /**
  * making sure all variables ar mysql safe
  */
 function store()
 {
     $this->capabilities = base64_serialize($this->capabilities);
     parent::store();
     $this->capabilities = base64_unserialize($this->capabilities);
 }