/**
* Format and display an error message stack.
- * @param $errors Mixed String or Array of message keys
+ * @param $errors String|Array|Status
* @return String
*/
function getErrors( $errors ) {
: $this->mTitle;
}
+ /**
+ * @return RequestContext
+ */
public function getContext(){
return $this->mContext instanceof RequestContext
? $this->mContext
: RequestContext::getMain();
}
+ /**
+ * @return OutputPage
+ */
public function getOutput(){
return $this->getContext()->output;
}
+ /**
+ * @return WebRequest
+ */
public function getRequest(){
return $this->getContext()->request;
}
+ /**
+ * @return User
+ */
public function getUser(){
return $this->getContext()->user;
}
protected $mID;
protected $mClass = '';
protected $mDefault;
+
+ /**
+ * @var HTMLForm
+ */
public $mParent;
/**
return ' ';
}
+ /**
+ * @param $request WebRequest
+ * @return String
+ */
function loadDataFromRequest( $request ) {
$invert = false;
if ( isset( $this->mParams['invert'] ) && $this->mParams['invert'] ) {
return "$select<br />\n$textbox";
}
+ /**
+ * @param $request WebRequest
+ * @return String
+ */
function loadDataFromRequest( $request ) {
if ( $request->getCheck( $this->mName ) ) {
$val = $request->getText( $this->mName );
return $html;
}
+ /**
+ * @param $request WebRequest
+ * @return String
+ */
function loadDataFromRequest( $request ) {
if ( $this->mParent->getMethod() == 'post' ) {
if( $request->wasPosted() ){