Commit de18def3 authored by Ad Schellevis's avatar Ad Schellevis

add support for custom return hooks in getNodes

parent 53166be0
......@@ -292,13 +292,22 @@ abstract class BaseField
if ($node->isContainer()) {
$result[$key] = $node->getNodes();
} else {
$result[$key] = $node->__toString();
$result[$key] = $node->getNodeData();
}
}
return $result;
}
/**
* companion for getNodes, displays node content. may be overwritten for alternative presentation.
* @return null|string
*/
public function getNodeData()
{
return $this->__toString();
}
/**
* update model with data returning missing repeating tag types.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment