PageRenderTime 35ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/models/group.php

https://github.com/felixding/LonelyThinker
PHP | 31 lines | 10 code | 0 blank | 21 comment | 0 complexity | b55afa890c34dc1bc7e0f05361a6e5fe MD5 | raw file
Possible License(s): GPL-2.0
  1. <?php
  2. /* SVN FILE: $Id: group.php 1 2009-04-16 13:02:44Z $ */
  3. /**
  4. * Short description for file.
  5. *
  6. * Long description for file
  7. *
  8. * PHP versions 5
  9. *
  10. * Licensed under The BSD License
  11. * Redistributions of files must retain the above copyright notice.
  12. *
  13. * @filesource
  14. * @copyright Copyright 2007-2009, Felix Ding (http://dingyu.me)
  15. * @link http://lonelythinker.org Project LonelyThinker
  16. * @package LonelyThinker
  17. * @author $LastChangedBy: $
  18. * @version $Revision: 1 $
  19. * @modifiedby $LastChangedBy: $
  20. * @lastmodified $Date: 2009-04-16 21:02:44 +0800 (四, 16 4 2009) $
  21. * @license http://www.opensource.org/licenses/bsd-license.php The BSD License
  22. */
  23. class Group extends AppModel
  24. {
  25. var $name = 'Group';
  26. var $hasMany = 'User';
  27. var $hasAndBelongsToMany = array('Permission' =>
  28. array('className' => 'Permission',
  29. 'joinTable' => 'groups_permissions'));
  30. }
  31. ?>