* @ingroup Media
*/
abstract class ImageGalleryBase extends ContextSource {
- /** @var array Gallery images */
+ /** @var array Gallery images */
protected $mImages;
- /** @var bool Whether to show the filesize in bytes in categories */
+ /** @var bool Whether to show the filesize in bytes in categories */
protected $mShowBytes;
/** @var bool Whether to show the filename. Default: true */
* Get a new image gallery. This is the method other callers
* should use to get a gallery.
*
- * @param string|bool $mode Mode to use. False to use the default.
+ * @param string|bool $mode Mode to use. False to use the default
* @throws MWException
*/
static function factory( $mode = false ) {
* @note This also triggers using the page's target
* language instead of the user language.
*
- * @param $parser Parser
+ * @param Parser $parser
*/
function setParser( $parser ) {
$this->mParser = $parser;
* to allow extensions to add additional parameters to
* <gallery> parser tag.
*
- * @param array $options Attributes of gallery tag.
+ * @param array $options Attributes of gallery tag
*/
public function setAdditionalOptions( $options ) {
}
* @param string $html Additional HTML text to be shown. The name and size
* of the image are always shown.
* @param string $alt Alt text for the image
- * @param string $link Override image link (optional)
+ * @param string $link Override image link (optional)
* @param array $handlerOpts Array of options for image handler (aka page number)
*/
function insert( $title, $html = '', $alt = '', $link = '', $handlerOpts = array() ) {
* Enable/Disable showing of the file size of an image in the gallery.
* Enabled by default.
*
- * @param bool $f Set to false to disable.
+ * @param bool $f Set to false to disable
*/
function setShowBytes( $f ) {
$this->mShowBytes = (bool)$f;
* Enable/Disable showing of the filename of an image in the gallery.
* Enabled by default.
*
- * @param bool $f Set to false to disable.
+ * @param bool $f Set to false to disable
*/
function setShowFilename( $f ) {
$this->mShowFilename = (bool)$f;