\CodeBankSnippets
Synopsis
class CodeBankSnippets
implements
CodeBank_APIClass
{
- // methods
- public {array} getLanguages()
- public {array} getSnippets()
- private {array} mapFolders()
- public {array} getSnippetsByLanguage()
- public {array} searchSnippets()
- public {array} getSnippetInfo()
- public {array} getSnippetRevisions()
- public {array} getSnippetTextFromRevision()
- public {array} newSnippet()
- public {array} saveSnippet()
- public {array} deleteSnippet()
- public {array} getSnippetDiff()
- public {array} getPackages()
- public {array} getPackageInfo()
- public {array} packageRemoveSnippet()
- public {array} findSnippetAutoComplete()
- public {array} addSnippetToPackage()
- public {array} savePackage()
- public {array} createPackage()
- public {array} deletePackage()
- public {array} newFolder()
- public {array} renameFolder()
- public {array} deleteFolder()
- public {array} moveSnippet()
- protected final {array} arrayUnmap()
- protected final {array} overviewList()
- protected final {array} sortToTop()
- public {array} getRequiredPermissions()
Hierarchy
Implements
Methods
private
- mapFolders() — Maps the folder and its decendents through recurrsion
protected
- arrayUnmap() — Converts an array where the key and value should be mapped to a nested array
- overviewList() — Converts an SS_List into an array of items with and id and a title key
- sortToTop() — Sorts an item to the top of the list
public
- addSnippetToPackage() — Adds a snippet to a package
- createPackage() — Saves a package
- deleteFolder() — Deletes a folder
- deletePackage() — Deletes a package
- deleteSnippet() — Deletes a snippet from the database
- findSnippetAutoComplete() — Finds a snippet begining with the data passed
- getLanguages() — Gets the list of languages
- getPackageInfo() — Gets the details of a package
- getPackages() — Gets the list of packages
- getRequiredPermissions() — Gets the permissions required to access the class
- getSnippetDiff() — Gets the snippet text for the two revisions as well as a unified diff file of the revisions
- getSnippetInfo() — Gets a snippet's information
- getSnippetRevisions() — Gets a revisions of the snippet
- getSnippetTextFromRevision() — Gets the of the snippet from a revision
- getSnippets() — Gets a list of snippets in an array of languages
- getSnippetsByLanguage() — Gets a list of snippets that are in the selected index in an array of languages
- moveSnippet() — Deletes a folder
- newFolder() — Saves a new folder
- newSnippet() — Saves a new snippet
- packageRemoveSnippet() — Removes a snippet from a package
- renameFolder() — Renames a folder
- savePackage() — Saves a package
- saveSnippet() — Saves an existing snippet
- searchSnippets() — Searches for snippets that match the information the client in the search field