[ Index ]

PHP Cross Reference of MediaWiki-1.24.0

title

Body

[close]

/includes/gallery/ -> PackedImageGallery.php (summary)

(no description)

File Size: 112 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

PackedImageGallery:: (10 methods):
  __construct()
  getVPad()
  getThumbPadding()
  getGBPadding()
  getThumbParams()
  getThumbDivWidth()
  getGBWidth()
  adjustImageParameters()
  getModules()
  setPerRow()


Class: PackedImageGallery  - X-Ref

Packed image gallery. All images adjusted to be same height.

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
http://www.gnu.org/copyleft/gpl.html

__construct( $mode = 'traditional' )   X-Ref
No description

getVPad( $boxHeight, $thumbHeight )   X-Ref
We artificially have 1.5 the resolution neccessary so that
we can scale it up by that much on the client side, without
worrying about requesting a new image.


getThumbPadding()   X-Ref
No description

getGBPadding()   X-Ref
No description

getThumbParams( $img )   X-Ref

param: File $img The file being transformed. May be false
return: array

getThumbDivWidth( $thumbWidth )   X-Ref
No description

getGBWidth( $thumb )   X-Ref

param: MediaTransformOutput|bool $thumb The thumbnail, or false if no
return: float

adjustImageParameters( $thumb, &$imageParameters )   X-Ref
No description

getModules()   X-Ref
Add javascript which auto-justifies the rows by manipulating the image sizes.
Also ensures that the hover version of this degrades gracefully.

return: array

setPerRow( $num )   X-Ref
Do not support per-row on packed. It really doesn't work
since the images have varying widths.

param: int $num



Generated: Fri Nov 28 14:03:12 2014 Cross-referenced by PHPXref 0.7.1