Lines Matching refs:data
284 * @param resource $data
289 function beforeWriteContent($path, DAV\IFile $node, &$data, &$modified) { argument
294 $this->validateVCard($data, $modified);
305 * @param resource $data
311 function beforeCreateFile($path, &$data, DAV\ICollection $parentNode, &$modified) { argument
316 $this->validateVCard($data, $modified);
325 * @param resource|string $data
330 protected function validateVCard(&$data, &$modified) { argument
333 if (is_resource($data)) {
334 $data = stream_get_contents($data);
337 $before = $data;
343 if (substr($data, 0, 1) === '[') {
344 $vobj = VObject\Reader::readJson($data);
348 $data = $vobj->serialize();
351 $vobj = VObject\Reader::read($data);
409 $data = $vobj->serialize();
410 if (!$modified && strcmp($data, $before) !== 0) {
847 * @param string|resource $data
852 protected function convertVCard($data, $target, array $propertiesFilter = null) { argument
854 if (is_resource($data)) {
855 $data = stream_get_contents($data);
857 $input = VObject\Reader::read($data);
867 $data = $input->serialize();
877 return $data;
884 return $data;