/**
  * Construct a date
  *
  * @param int $timestamp The unix timestamp, or blank for "now".
  */
 function __construct($timestamp = 0)
 {
     parent::__construct();
     $this->value = $timestamp;
     if (!$timestamp) {
         $this->value = time();
     }
 }
 /**
  * Construct an array.
  *
  * @param array $parameters Optional array of parameters, if not provided
  * then addField must be used.
  */
 function __construct($parameters = NULL)
 {
     parent::__construct();
     if (is_array($parameters)) {
         foreach ($parameters as $v) {
             $this->addField($v);
         }
     }
 }
 /**
  * Construct a base64 encoded block
  *
  * @param string $blob Unencoded binary blob
  */
 function __construct($blob)
 {
     parent::__construct();
     $this->value = base64_encode($blob);
 }
 /**
  * A new XML int
  *
  * @param int $value Value
  */
 function __construct($value)
 {
     parent::__construct();
     $this->value = (int) $value;
 }