Twitter Feed

Xataface Maillist

Sign up to receive the Xataface news letter with weekly updates and development tips.

Found 1 of 138 records in table Wiki
Now Showing 1 of 1

Current Record: afterCopy

afterCopy Delegate class Method


Return to Delegate class methods


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


function afterCopy( Dataface_Record $original, Dataface_Record $copy);


  • $original - The original record that was copied.
  • $copy - The resulting copied record.


  • 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.
blog comments powered by Disqus
Powered by Xataface
(c) 2005-2018 All rights reserved