public function __construct($id = null, $name = '', $attributes = array(), $value = array())
 {
     parent::__construct($id, $name, $attributes, $value);
     if (is_array($value) && (count($value) == 2 || count($value) == 3)) {
         $this->setUsername($value[0]);
         $this->setPassword($value[1]);
         if (count($value) == 3) {
             $this->setNote($value[2]);
         }
     }
 }
 public function __construct($id = null, $name = '', $attributes = array(), $value = array())
 {
     parent::__construct($id, $name, $attributes, $value);
     $this->map = json_decode(json_encode($value), true);
 }