프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$api | |||
$debugMode | |||
$error | |||
$password | |||
$session | Requests_Session | ||
$useragent | |||
$username |
메소드 | 설명 | |
---|---|---|
__construct ( $api ) : Wikimate | Create a new Wikimate object. | |
debugCurlConfig ( boolean $echo = false ) : mixed | Used to return or print the curl settings, but now prints an error and returns Wikimate::debugRequestsConfig(). | |
debugRequestsConfig ( boolean $echo = false ) : boolean | Get or print the Requests configuration. | |
delete ( array $array ) : array | Perfoms a delete query to the wiki API. | |
download ( string $url ) : mixed | Downloads data from the given URL. | |
edit ( array $array ) : array | Perfoms an edit query to the wiki API. | |
getError ( ) : mixed | Returns the latest error if there is one. | |
getFile ( string $filename ) : WikiFile | Returns a WikiFile object populated with the file data. | |
getPage ( string $title ) : WikiPage | Returns a WikiPage object populated with the page data. | |
login ( string $username, string $password, string $domain = null ) : boolean | Logs in to the wiki. | |
parse ( array $array ) : array | Performs a parse query to the wiki API. | |
query ( array $array ) : array | Performs a query to the wiki API with the given details. | |
setDebugMode ( boolean $b ) : Wikimate | Sets the debug mode. | |
upload ( array $array ) : array | Uploads a file to the wiki API. |
메소드 | 설명 | |
---|---|---|
initRequests ( ) : void | Set up a Requests_Session with appropriate user agent. |
public __construct ( $api ) : Wikimate | ||
리턴 | Wikimate |
public debugCurlConfig ( boolean $echo = false ) : mixed | ||
$echo | boolean | True to echo the configuration |
리턴 | mixed | Array of config if $echo is false, (boolean) true if echo is true |
public debugRequestsConfig ( boolean $echo = false ) : boolean | ||
$echo | boolean | Whether to echo the options |
리턴 | boolean | Options if $echo is false |
protected initRequests ( ) : void | ||
리턴 | void |
public setDebugMode ( boolean $b ) : Wikimate | ||
$b | boolean | True to turn debugging on |
리턴 | Wikimate | This object |