* the rest of the file classes.
* @param string $type 'text' or 'id'
* @return int|string
+ * @throws MWException
*/
public function getUser( $type = 'text' ) {
$this->load();
} elseif ( $type == 'id' ) {
return $this->user;
}
+
+ throw new MWException( "Unknown type '$type'." );
}
/**