[ Index ]

PHP Cross Reference of GlotPress

title

Body

[close]

/gp-includes/routes/ -> glossary.php (summary)

Routes: GP_Route_Glossary class

File Size: 203 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

GP_Route_Glossary:: (8 methods):
  new_get()
  new_post()
  edit_get()
  edit_post()
  delete_get()
  delete_post()
  cannot_edit_glossary_and_redirect()
  cannot_delete_glossary_and_redirect()


Class: GP_Route_Glossary  - X-Ref

Core class used to implement the glossary route.

new_get()   X-Ref
No description

new_post()   X-Ref
No description

edit_get( $glossary_id )   X-Ref
No description

edit_post( $glossary_id )   X-Ref
No description

delete_get( $glossary_id )   X-Ref
Displays the delete page for glossaries.

since: 2.0.0
param: int $glossary_id The id of the glossary to delete.

delete_post( $glossary_id )   X-Ref
Delete a glossary.

since: 2.0.0
param: int $glossary_id The id of the glossary to delete.

cannot_edit_glossary_and_redirect( $glossary )   X-Ref
Checks to see if the current user can edit a glossary or not.  If they cannot it redirects back to the project page.

return: bool
since: 1.0.0
param: GP_Glossary $glossary The glossary object to check.

cannot_delete_glossary_and_redirect( $glossary )   X-Ref
Checks to see if the current user can delete a glossary or not.  If they cannot it redirects back to the project page.

return: bool
since: 2.0.0
param: GP_Glossary $glossary The glossary object to check.



Generated: Sun Nov 17 01:01:56 2019 Cross-referenced by PHPXref 0.7.1