Prev | Current Page 209 | Next

Marc Delisle

"Mastering phpMyAdmin 2.11 for Effective MySQL Management"

It would be interesting to see a thumbnail of
the picture directly in phpMyAdmin, and possibly the full-size picture itself.
We define a transformation as a mechanism by which all the cells relating to a
column are transformed at browse time, using the metadata defined for this column.
Only the cells visible on the results page are transformed. The transformation logic
itself is coded in PHP scripts, stored in libraries/transformations, and called
using a plug-in architecture.
To enable this feature, we must set $cfg['BrowseMIME'] to TRUE in config.inc.
php. The linked-tables infrastructure must be in place (see Chapter 11), because the
metadata necessary for the transformations is not available in the official MySQL
table structure; it is an addition made especially for phpMyAdmin.
??? ???
MIME-Based Transformations
[ 240 ]
In the documentation section on phpMyAdmin's home site, there is a link
pointing to additional information for developers who would like to learn
the internal structure of the plug-ins in order to code their
own transformations.
The MIME Column's Settings
If we go to the Table view of the Structure page for the book table and click the
Change link for the cover_photo, we see three additional attributes for the fields:
MIME type
Browser transformation
Transformation options
For a specific field, it is possible to indicate only one type of transformation.


Pages:
197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221