| @@ 50-57 (lines=8) @@ | ||
| 47 | /** |
|
| 48 | * @see \Pomm\Converter\ConverterInterface |
|
| 49 | */ |
|
| 50 | public function toPg($data, $type, Session $session) |
|
| 51 | { |
|
| 52 | if ($data === null) { |
|
| 53 | return sprintf("NULL::%s", $type); |
|
| 54 | } |
|
| 55 | ||
| 56 | return sprintf("%s(\$hs\$%s\$hs\$)", $type, join(', ', $this->buildArray($this->checkArray($data)))); |
|
| 57 | } |
|
| 58 | ||
| 59 | /** |
|
| 60 | * @see \Pomm\Converter\ConverterInterface |
|
| @@ 62-69 (lines=8) @@ | ||
| 59 | /** |
|
| 60 | * @see \Pomm\Converter\ConverterInterface |
|
| 61 | */ |
|
| 62 | public function toPgStandardFormat($data, $type, Session $session) |
|
| 63 | { |
|
| 64 | if ($data === null) { |
|
| 65 | return null; |
|
| 66 | } |
|
| 67 | ||
| 68 | return sprintf('%s', join(', ', $this->buildArray($this->checkArray($data)))); |
|
| 69 | } |
|
| 70 | ||
| 71 | /** |
|
| 72 | * buildArray |
|