Advertisement
Guest User

elgg refactoring

a guest
Aug 26th, 2013
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.28 KB | None | 0 0
  1. class MyUser extends ElggUser {
  2.     use containersTrait;
  3.    
  4.     function follow() {
  5.         // same logic
  6.     }
  7.    
  8.     function add_to_blacklist() {
  9.         // same logic
  10.     }
  11. }
  12.  
  13. trait containersTrait {
  14.     function get_containers() {
  15.         // same logic
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement