Mixin_WordPress_Security_Action_Converter

The NextGEN Gallery Mixin WordPress Security Action Converter class.

Defined (1)

The class is defined in the following location(s).

/products/photocrati_nextgen/modules/security/package.module.security.php  
  1. class Mixin_WordPress_Security_Action_Converter extends Mixin 
  2. function get_native_action($capability_name, $args = null) 
  3. switch ($capability_name) { 
  4. case 'nextgen_edit_settings': 
  5. $capability_name = 'NextGEN Change options'; 
  6. break; 
  7. case 'nextgen_edit_style': 
  8. $capability_name = 'NextGEN Change style'; 
  9. break; 
  10. case 'nextgen_edit_display_settings': 
  11. $capability_name = 'NextGEN Change options'; 
  12. break; 
  13. case 'nextgen_edit_displayed_gallery': 
  14. $capability_name = 'NextGEN Attach Interface'; 
  15. break; 
  16. case 'nextgen_edit_gallery': 
  17. $capability_name = 'NextGEN Manage gallery'; 
  18. break; 
  19. case 'nextgen_edit_gallery_unowned': 
  20. $capability_name = 'NextGEN Manage others gallery'; 
  21. break; 
  22. case 'nextgen_upload_image': 
  23. $capability_name = 'NextGEN Upload images'; 
  24. break; 
  25. case 'nextgen_edit_album_settings': 
  26. $capability_name = 'NextGEN Edit album settings'; 
  27. break; 
  28. case 'nextgen_edit_album': 
  29. $capability_name = 'NextGEN Edit album'; 
  30. break; 
  31. return $capability_name;