Posted By

tylerhall on 07/10/06


Tagged

textmate vc userid username


Versions (?)

ViewController User_ID to Username


 / Published in: PHP
 

Just some code from my own framework.

  1. function vc_format_user_id($table, $val, $row)
  2. {
  3. global $vc_username;
  4. if(!is_array($vc_username)) $vc_username = array();
  5. if(!isset($vc_username[$val]))
  6. {
  7. $u = new User($val);
  8. $vc_username[$val] = $u->username;
  9. }
  10. return $vc_username[$val];
  11. }

Report this snippet  

You need to login to post a comment.