afterCopy Delegate class Method
Return to Delegate class methods
Synopsis
A delegate class method that will be executed after a record is copied using the copy set or copy selected function. All xataface copies are shallow which means that related records are not copied by default. If you want a more complex copy function for a table you can implement functionality in this hook.
Available since version 1.3
Signature
function afterCopy( Dataface_Record $original, Dataface_Record $copy);
Parameters
- $original - The original record that was copied.
- $copy - The resulting copied record.
Returns
- Either return nothing or you may return a PEAR_Error object to indicate that an error occurred with the copy.
See Also
- beforeCopy - The beforeCopy hook that can be implemented in the delegate class to run just before a record is copied.
var disqus_identifier = ‘xataface.com/wiki/afterCopy’; (function() { var dsq = document.createElement(‘script’); dsq.type = ‘text/javascript’; dsq.async = true; dsq.src = ‘http://xataface.disqus.com/embed.js’; (document.getElementsByTagName(‘head’)[0] || document.getElementsByTagName(‘body’)[0]).appendChild(dsq); })(); blog comments powered by Disqus
//<![CDATA[ (function() { var links = document.getElementsByTagName(‘a’); var query = ‘?’; for(var i = 0; i < links.length; i++) { if(links[i].href.indexOf(‘#disqus_thread’) >= 0) { query += ‘url’ + i + ‘=’ + encodeURIComponent(links[i].href) + ‘&’; } } document.write(‘