[ Index ] |
PHP Cross Reference of MediaWiki-1.24.0 |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * Api module to reload FancyCaptcha 4 * 5 * @ingroup API 6 * @ingroup Extensions 7 */ 8 class ApiFancyCaptchaReload extends ApiBase { 9 public function execute() { 10 # Get a new FancyCaptcha form data 11 $captcha = new FancyCaptcha(); 12 $captchaIndex = $captcha->getCaptchaIndex(); 13 14 $result = $this->getResult(); 15 $result->addValue( null, $this->getModuleName(), array ( 'index' => $captchaIndex ) ); 16 return true; 17 } 18 19 public function getDescription() { 20 return 'Get a new FancyCaptcha.'; 21 } 22 23 public function getAllowedParams() { 24 return array(); 25 } 26 27 public function getParamDescription() { 28 return array(); 29 } 30 31 public function getExamples() { 32 return array( 'api.php?action=fancycaptchareload&format=xml' ); 33 } 34 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Nov 28 14:03:12 2014 | Cross-referenced by PHPXref 0.7.1 |