Ejemplo n.º 1
0
 /**
  * Construct an array object from a php serialized string
  *
  * @param string $input a php-serialized string
  */
 function __construct($input)
 {
     if (is_string($input)) {
         $input = (array) unserialize($input);
     }
     parent::__construct((array) $input);
 }
Ejemplo n.º 2
0
 /**
  * Construct an array object from a json string
  *
  * @param string $input a json string
  */
 function __construct($input)
 {
     if (is_string($input)) {
         $input = studip_utf8decode((array) json_decode($input, true));
     }
     parent::__construct((array) $input);
 }