Created
October 9, 2012 15:35
-
-
Save mfrost503/3859572 to your computer and use it in GitHub Desktop.
Account Logic Hook
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* This account hook would be run before save | |
**/ | |
class AccountHook | |
{ | |
public function setDBAName($bean,$event,$arguments) | |
{ | |
$bean->dba_c = $bean->name; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment