Differences

This shows you the differences between two versions of the page.

Link to this comparison view

professions [2013/09/12 22:49] (current)
Line 1: Line 1:
 +====== Introduction ======
 +The professions core module offers a simple interface to lookup profession names by shortcut or full name, and to look up shortcuts for full profession names.
  
 +====== Function full_name($profstr) ======
 +This function tries to identify which profession //​$profstr//​ is pointing to by comparing to full names and pre-defined shortcuts. It returns an array as result, with //error// = true if no match was found, //content// got the error text then. On success it returns the full profession name in //content// with //error// = false.
 +
 +====== Function shortcut($profstr) ======
 +This function returns the shortcut for //​$profstr//​ as //content// on success. If //​$profstr//​ is no profession name it returns //error// = true.
 
professions.txt ยท Last modified: 2013/09/12 22:49 (external edit)
[unknown button type]
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
WikiForumIRCBugs
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki