public function parse(\SimpleXMLElement $node)
 {
     $value = new StandardBlockValue();
     $i = 0;
     foreach ($node->link as $linkNode) {
         $service = (string) $linkNode['service'];
         $record = new StandardBlockDataRecord();
         $recordData = array();
         $recordData['service'] = $service;
         $record->setData($recordData);
         $record->setPosition($i);
         $record->setValue($value);
         $value->getRecords()->add($record);
         ++$i;
     }
     return $value;
 }
 public function parse(\SimpleXMLElement $node)
 {
     $content = $node->children('http://purl.org/rss/1.0/modules/content/');
     $recordData = array('content' => (string) $content->encoded);
     $value = $this->createBlockValueObject();
     $r = new StandardBlockDataRecord();
     $r->setTable('btContentLocal');
     $r->setData($recordData);
     $r->setValue($value);
     $r->setPosition(1);
     $value->getRecords()->add($r);
     return $value;
 }
 public function parse(\SimpleXMLElement $node)
 {
     $value = $this->createBlockValueObject();
     $position = 0;
     foreach ($node->data as $data) {
         foreach ($data->record as $record) {
             $r = new StandardBlockDataRecord();
             $r->setTable((string) $data['table']);
             $recordData = array();
             foreach ($record->children() as $field) {
                 $recordData[$field->getName()] = (string) $field;
             }
             $r->setData($recordData);
             $r->setValue($value);
             $r->setPosition($position);
             $value->getRecords()->add($r);
             ++$position;
         }
     }
     return $value;
 }