10 private $fields = array();
15 $this->fields = $field_data;
18 private function nextRow() {
19 $this->content = rtrim($this->content,
',') .
"\r\n";
23 foreach ($data as $key => $value) {
24 $this->addEntry($this->fields[$key],
true);
29 private function addEntry($value, $boolean)
31 $this->content .=
'"'.str_replace(
'"',
'\"', $value).
'"';
33 $this->content .=
",";
39 foreach ($data as $key => $value) {
40 if ($this->fields[$key]) {
41 $this->addEntry(isset($value) ? $value :
'',
true);
48 return $this->content;
addContact($data=array())
__construct($field_data=array())