antragsbot 0.5.1
http://antragsbot.sf.net
|
Public Member Functions | |
__construct () | |
debugCurlConfig ($echo=false) | |
edit ($array) | |
getPage ($title) | |
query ($array) | |
setDebugMode ($b) | |
Public Attributes | |
const | SECTIONLIST_BY_INDEX = 2 |
const | SECTIONLIST_BY_NAME = 1 |
Provides an interface over wiki api objects such as pages Logs into the wiki on construction
Wikimate::__construct | ( | ) |
Creates a curl object and logs in If it can't login the class will exit and return null
Wikimate::debugCurlConfig | ( | $ | echo = false | ) |
Either return or print the curl settings.
boolean | $echo | True to echo the configuration |
Wikimate::edit | ( | $ | array | ) |
Perfoms an edit query to the wiki api
array | $array | array of details to be passed in the query |
Wikimate::getPage | ( | $ | title | ) |
Wikimate::query | ( | $ | array | ) |
Performs a query to the wiki api with the given details
array | $array | array of details to be passed in the query |
Wikimate::setDebugMode | ( | $ | b | ) |
Sets the debug mode
boolean | $debugMode | true to turn debugging on |
const Wikimate::SECTIONLIST_BY_INDEX = 2 |
const Wikimate::SECTIONLIST_BY_NAME = 1 |