Example #1
0
 /**
  * This constructor initializes the class with the specified data.
  *
  * @access public
  * @param mixed $data                                       the data to be written
  */
 public function __construct($data)
 {
     $this->data = Common\Collection::useArrays($data);
     $this->metadata = array('builder' => '', 'command' => 'insert', 'data_source' => 'default', 'encoding' => array(Core\Data\Charset::UTF_8_ENCODING, Core\Data\Charset::UTF_8_ENCODING), 'eol' => "\n", 'ext' => '.sql', 'mime' => 'text/x-sql', 'schema' => array(), 'url' => null);
 }
Example #2
0
 /**
  * This constructor initializes the class with the specified data.
  *
  * @access public
  * @param mixed $data                                       the data to be written
  */
 public function __construct($data)
 {
     $this->data = Common\Collection::useArrays($data);
     $this->metadata = array('credentials' => array(), 'encoding' => array(Core\Data\Charset::UTF_8_ENCODING, Core\Data\Charset::UTF_8_ENCODING), 'ext' => '.xml', 'mime' => 'text/xml', 'xmlns' => '');
 }
Example #3
0
 /**
  * This constructor initializes the class with the specified data.
  *
  * @access public
  * @param mixed $data                                       the data to be written
  */
 public function __construct($data)
 {
     $this->data = Common\Collection::useArrays($data);
     $this->metadata = array('builder' => null, 'encoding' => array(Core\Data\Charset::UTF_8_ENCODING, Core\Data\Charset::UTF_8_ENCODING), 'ext' => '.txt', 'mime' => 'text/plain', 'schema' => array(), 'url' => null);
 }