Namespaces

  • Nette
    • Application
      • Diagnostics
      • Responses
      • Routers
      • UI
    • Caching
      • Storages
    • ComponentModel
    • Config
      • Adapters
      • Extensions
    • Database
      • Diagnostics
      • Drivers
      • Reflection
      • Table
    • DI
      • Diagnostics
    • Diagnostics
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Latte
      • Macros
    • Loaders
    • Localization
    • Mail
    • Reflection
    • Security
      • Diagnostics
    • Templating
    • Utils
      • PhpGenerator
  • NetteModule
  • None
  • PHP

Classes

  • ArrayHash
  • ArrayList
  • Callback
  • DateTime
  • Environment
  • Framework
  • FreezableObject
  • Image
  • Object
  • ObjectMixin

Interfaces

  • IFreezable

Exceptions

  • ArgumentOutOfRangeException
  • DeprecatedException
  • DirectoryNotFoundException
  • FatalErrorException
  • FileNotFoundException
  • InvalidArgumentException
  • InvalidStateException
  • IOException
  • MemberAccessException
  • NotImplementedException
  • NotSupportedException
  • OutOfRangeException
  • StaticClassException
  • UnexpectedValueException
  • UnknownImageFileException
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  1: <?php
  2: 
  3: /**
  4:  * This file is part of the Nette Framework (http://nette.org)
  5:  * Copyright (c) 2004 David Grudl (http://davidgrudl.com)
  6:  */
  7: 
  8: namespace Nette;
  9: 
 10: use Nette;
 11: 
 12: 
 13: /**
 14:  * Basic manipulation with images.
 15:  *
 16:  * <code>
 17:  * $image = Image::fromFile('nette.jpg');
 18:  * $image->resize(150, 100);
 19:  * $image->sharpen();
 20:  * $image->send();
 21:  * </code>
 22:  *
 23:  * @author     David Grudl
 24:  *
 25:  * @method void alphaBlending(bool $on)
 26:  * @method void antialias(bool $on)
 27:  * @method void arc($x, $y, $w, $h, $s, $e, $color)
 28:  * @method void char($font, $x, $y, $char, $color)
 29:  * @method void charUp($font, $x, $y, $char, $color)
 30:  * @method int colorAllocate($red, $green, $blue)
 31:  * @method int colorAllocateAlpha($red, $green, $blue, $alpha)
 32:  * @method int colorAt($x, $y)
 33:  * @method int colorClosest($red, $green, $blue)
 34:  * @method int colorClosestAlpha($red, $green, $blue, $alpha)
 35:  * @method int colorClosestHWB($red, $green, $blue)
 36:  * @method void colorDeallocate($color)
 37:  * @method int colorExact($red, $green, $blue)
 38:  * @method int colorExactAlpha($red, $green, $blue, $alpha)
 39:  * @method void colorMatch(Image $image2)
 40:  * @method int colorResolve($red, $green, $blue)
 41:  * @method int colorResolveAlpha($red, $green, $blue, $alpha)
 42:  * @method void colorSet($index, $red, $green, $blue)
 43:  * @method array colorsForIndex($index)
 44:  * @method int colorsTotal()
 45:  * @method int colorTransparent([$color])
 46:  * @method void convolution(array $matrix, float $div, float $offset)
 47:  * @method void copy(Image $src, $dstX, $dstY, $srcX, $srcY, $srcW, $srcH)
 48:  * @method void copyMerge(Image $src, $dstX, $dstY, $srcX, $srcY, $srcW, $srcH, $opacity)
 49:  * @method void copyMergeGray(Image $src, $dstX, $dstY, $srcX, $srcY, $srcW, $srcH, $opacity)
 50:  * @method void copyResampled(Image $src, $dstX, $dstY, $srcX, $srcY, $dstW, $dstH, $srcW, $srcH)
 51:  * @method void copyResized(Image $src, $dstX, $dstY, $srcX, $srcY, $dstW, $dstH, $srcW, $srcH)
 52:  * @method void dashedLine($x1, $y1, $x2, $y2, $color)
 53:  * @method void ellipse($cx, $cy, $w, $h, $color)
 54:  * @method void fill($x, $y, $color)
 55:  * @method void filledArc($cx, $cy, $w, $h, $s, $e, $color, $style)
 56:  * @method void filledEllipse($cx, $cy, $w, $h, $color)
 57:  * @method void filledPolygon(array $points, $numPoints, $color)
 58:  * @method void filledRectangle($x1, $y1, $x2, $y2, $color)
 59:  * @method void fillToBorder($x, $y, $border, $color)
 60:  * @method void filter($filtertype [, ...])
 61:  * @method int fontHeight($font)
 62:  * @method int fontWidth($font)
 63:  * @method array ftBBox($size, $angle, string $fontFile, string $text [, array $extrainfo])
 64:  * @method array ftText($size, $angle, $x, $y, $col, string $fontFile, string $text [, array $extrainfo])
 65:  * @method void gammaCorrect(float $inputgamma, float $outputgamma)
 66:  * @method int interlace([$interlace])
 67:  * @method bool isTrueColor()
 68:  * @method void layerEffect($effect)
 69:  * @method void line($x1, $y1, $x2, $y2, $color)
 70:  * @method int loadFont(string $file)
 71:  * @method void paletteCopy(Image $source)
 72:  * @method void polygon(array $points, $numPoints, $color)
 73:  * @method array psBBox(string $text, $font, $size [, $space] [, $tightness] [, float $angle])
 74:  * @method void psEncodeFont($fontIndex, string $encodingfile)
 75:  * @method void psExtendFont($fontIndex, float $extend)
 76:  * @method void psFreeFont($fontindex)
 77:  * @method resource psLoadFont(string $filename)
 78:  * @method void psSlantFont($fontIndex, float $slant)
 79:  * @method array psText(string $text, $font, $size, $color, $backgroundColor, $x, $y [, $space] [, $tightness] [, float $angle] [, $antialiasSteps])
 80:  * @method void rectangle($x1, $y1, $x2, $y2, $col)
 81:  * @method Image rotate(float $angle, $backgroundColor)
 82:  * @method void saveAlpha(bool $saveflag)
 83:  * @method void setBrush(Image $brush)
 84:  * @method void setPixel($x, $y, $color)
 85:  * @method void setStyle(array $style)
 86:  * @method void setThickness($thickness)
 87:  * @method void setTile(Image $tile)
 88:  * @method void string($font, $x, $y, string $s, $col)
 89:  * @method void stringUp($font, $x, $y, string $s, $col)
 90:  * @method void trueColorToPalette(bool $dither, $ncolors)
 91:  * @method array ttfBBox($size, $angle, string $fontfile, string $text)
 92:  * @method array ttfText($size, $angle, $x, $y, $color, string $fontfile, string $text)
 93:  * @method int types()
 94:  * @property-read int $width
 95:  * @property-read int $height
 96:  * @property-read resource $imageResource
 97:  */
 98: class Image extends Object
 99: {
100:     /** {@link resize()} only shrinks images */
101:     const SHRINK_ONLY = 1;
102: 
103:     /** {@link resize()} will ignore aspect ratio */
104:     const STRETCH = 2;
105: 
106:     /** {@link resize()} fits in given area so its dimensions are less than or equal to the required dimensions */
107:     const FIT = 0;
108: 
109:     /** {@link resize()} fills given area so its dimensions are greater than or equal to the required dimensions */
110:     const FILL = 4;
111: 
112:     /** {@link resize()} fills given area exactly */
113:     const EXACT = 8;
114: 
115:     /** @int image types {@link send()} */
116:     const JPEG = IMAGETYPE_JPEG,
117:         PNG = IMAGETYPE_PNG,
118:         GIF = IMAGETYPE_GIF;
119: 
120:     const EMPTY_GIF = "GIF89a\x01\x00\x01\x00\x80\x00\x00\x00\x00\x00\x00\x00\x00!\xf9\x04\x01\x00\x00\x00\x00,\x00\x00\x00\x00\x01\x00\x01\x00\x00\x02\x02D\x01\x00;";
121: 
122:     /** @deprecated */
123:     const ENLARGE = 0;
124: 
125:     /** @var resource */
126:     private $image;
127: 
128: 
129:     /**
130:      * Returns RGB color.
131:      * @param  int  red 0..255
132:      * @param  int  green 0..255
133:      * @param  int  blue 0..255
134:      * @param  int  transparency 0..127
135:      * @return array
136:      */
137:     public static function rgb($red, $green, $blue, $transparency = 0)
138:     {
139:         return array(
140:             'red' => max(0, min(255, (int) $red)),
141:             'green' => max(0, min(255, (int) $green)),
142:             'blue' => max(0, min(255, (int) $blue)),
143:             'alpha' => max(0, min(127, (int) $transparency)),
144:         );
145:     }
146: 
147: 
148:     /**
149:      * Opens image from file.
150:      * @param  string
151:      * @param  mixed  detected image format
152:      * @return Image
153:      */
154:     public static function fromFile($file, & $format = NULL)
155:     {
156:         if (!extension_loaded('gd')) {
157:             throw new NotSupportedException("PHP extension GD is not loaded.");
158:         }
159: 
160:         $info = @getimagesize($file); // @ - files smaller than 12 bytes causes read error
161: 
162:         switch ($format = $info[2]) {
163:             case self::JPEG:
164:                 return new static(imagecreatefromjpeg($file));
165: 
166:             case self::PNG:
167:                 return new static(imagecreatefrompng($file));
168: 
169:             case self::GIF:
170:                 return new static(imagecreatefromgif($file));
171: 
172:             default:
173:                 throw new UnknownImageFileException("Unknown image type or file '$file' not found.");
174:         }
175:     }
176: 
177: 
178:     /**
179:      * Get format from the image stream in the string.
180:      * @param  string
181:      * @return mixed  detected image format
182:      */
183:     public static function getFormatFromString($s)
184:     {
185:         $types = array('image/jpeg' => self::JPEG, 'image/gif' => self::GIF, 'image/png' => self::PNG);
186:         $type = Utils\MimeTypeDetector::fromString($s);
187:         return isset($types[$type]) ? $types[$type] : NULL;
188:     }
189: 
190: 
191:     /**
192:      * Create a new image from the image stream in the string.
193:      * @param  string
194:      * @param  mixed  detected image format
195:      * @return Image
196:      */
197:     public static function fromString($s, & $format = NULL)
198:     {
199:         if (!extension_loaded('gd')) {
200:             throw new NotSupportedException("PHP extension GD is not loaded.");
201:         }
202: 
203:         $format = static::getFormatFromString($s);
204: 
205:         return new static(imagecreatefromstring($s));
206:     }
207: 
208: 
209:     /**
210:      * Creates blank image.
211:      * @param  int
212:      * @param  int
213:      * @param  array
214:      * @return Image
215:      */
216:     public static function fromBlank($width, $height, $color = NULL)
217:     {
218:         if (!extension_loaded('gd')) {
219:             throw new NotSupportedException("PHP extension GD is not loaded.");
220:         }
221: 
222:         $width = (int) $width;
223:         $height = (int) $height;
224:         if ($width < 1 || $height < 1) {
225:             throw new InvalidArgumentException('Image width and height must be greater than zero.');
226:         }
227: 
228:         $image = imagecreatetruecolor($width, $height);
229:         if (is_array($color)) {
230:             $color += array('alpha' => 0);
231:             $color = imagecolorallocatealpha($image, $color['red'], $color['green'], $color['blue'], $color['alpha']);
232:             imagealphablending($image, FALSE);
233:             imagefilledrectangle($image, 0, 0, $width - 1, $height - 1, $color);
234:             imagealphablending($image, TRUE);
235:         }
236:         return new static($image);
237:     }
238: 
239: 
240:     /**
241:      * Wraps GD image.
242:      * @param  resource
243:      */
244:     public function __construct($image)
245:     {
246:         $this->setImageResource($image);
247:         imagesavealpha($image, TRUE);
248:     }
249: 
250: 
251:     /**
252:      * Returns image width.
253:      * @return int
254:      */
255:     public function getWidth()
256:     {
257:         return imagesx($this->image);
258:     }
259: 
260: 
261:     /**
262:      * Returns image height.
263:      * @return int
264:      */
265:     public function getHeight()
266:     {
267:         return imagesy($this->image);
268:     }
269: 
270: 
271:     /**
272:      * Sets image resource.
273:      * @param  resource
274:      * @return self
275:      */
276:     protected function setImageResource($image)
277:     {
278:         if (!is_resource($image) || get_resource_type($image) !== 'gd') {
279:             throw new InvalidArgumentException('Image is not valid.');
280:         }
281:         $this->image = $image;
282:         return $this;
283:     }
284: 
285: 
286:     /**
287:      * Returns image GD resource.
288:      * @return resource
289:      */
290:     public function getImageResource()
291:     {
292:         return $this->image;
293:     }
294: 
295: 
296:     /**
297:      * Resizes image.
298:      * @param  mixed  width in pixels or percent
299:      * @param  mixed  height in pixels or percent
300:      * @param  int    flags
301:      * @return self
302:      */
303:     public function resize($width, $height, $flags = self::FIT)
304:     {
305:         if ($flags & self::EXACT) {
306:             return $this->resize($width, $height, self::FILL)->crop('50%', '50%', $width, $height);
307:         }
308: 
309:         list($newWidth, $newHeight) = static::calculateSize($this->getWidth(), $this->getHeight(), $width, $height, $flags);
310: 
311:         if ($newWidth !== $this->getWidth() || $newHeight !== $this->getHeight()) { // resize
312:             $newImage = static::fromBlank($newWidth, $newHeight, self::RGB(0, 0, 0, 127))->getImageResource();
313:             imagecopyresampled(
314:                 $newImage, $this->getImageResource(),
315:                 0, 0, 0, 0,
316:                 $newWidth, $newHeight, $this->getWidth(), $this->getHeight()
317:             );
318:             $this->image = $newImage;
319:         }
320: 
321:         if ($width < 0 || $height < 0) { // flip is processed in two steps for better quality
322:             $newImage = static::fromBlank($newWidth, $newHeight, self::RGB(0, 0, 0, 127))->getImageResource();
323:             imagecopyresampled(
324:                 $newImage, $this->getImageResource(),
325:                 0, 0, $width < 0 ? $newWidth - 1 : 0, $height < 0 ? $newHeight - 1 : 0,
326:                 $newWidth, $newHeight, $width < 0 ? -$newWidth : $newWidth, $height < 0 ? -$newHeight : $newHeight
327:             );
328:             $this->image = $newImage;
329:         }
330:         return $this;
331:     }
332: 
333: 
334:     /**
335:      * Calculates dimensions of resized image.
336:      * @param  mixed  source width
337:      * @param  mixed  source height
338:      * @param  mixed  width in pixels or percent
339:      * @param  mixed  height in pixels or percent
340:      * @param  int    flags
341:      * @return array
342:      */
343:     public static function calculateSize($srcWidth, $srcHeight, $newWidth, $newHeight, $flags = self::FIT)
344:     {
345:         if (substr($newWidth, -1) === '%') {
346:             $newWidth = round($srcWidth / 100 * abs($newWidth));
347:             $percents = TRUE;
348:         } else {
349:             $newWidth = (int) abs($newWidth);
350:         }
351: 
352:         if (substr($newHeight, -1) === '%') {
353:             $newHeight = round($srcHeight / 100 * abs($newHeight));
354:             $flags |= empty($percents) ? 0 : self::STRETCH;
355:         } else {
356:             $newHeight = (int) abs($newHeight);
357:         }
358: 
359:         if ($flags & self::STRETCH) { // non-proportional
360:             if (empty($newWidth) || empty($newHeight)) {
361:                 throw new InvalidArgumentException('For stretching must be both width and height specified.');
362:             }
363: 
364:             if ($flags & self::SHRINK_ONLY) {
365:                 $newWidth = round($srcWidth * min(1, $newWidth / $srcWidth));
366:                 $newHeight = round($srcHeight * min(1, $newHeight / $srcHeight));
367:             }
368: 
369:         } else {  // proportional
370:             if (empty($newWidth) && empty($newHeight)) {
371:                 throw new InvalidArgumentException('At least width or height must be specified.');
372:             }
373: 
374:             $scale = array();
375:             if ($newWidth > 0) { // fit width
376:                 $scale[] = $newWidth / $srcWidth;
377:             }
378: 
379:             if ($newHeight > 0) { // fit height
380:                 $scale[] = $newHeight / $srcHeight;
381:             }
382: 
383:             if ($flags & self::FILL) {
384:                 $scale = array(max($scale));
385:             }
386: 
387:             if ($flags & self::SHRINK_ONLY) {
388:                 $scale[] = 1;
389:             }
390: 
391:             $scale = min($scale);
392:             $newWidth = round($srcWidth * $scale);
393:             $newHeight = round($srcHeight * $scale);
394:         }
395: 
396:         return array(max((int) $newWidth, 1), max((int) $newHeight, 1));
397:     }
398: 
399: 
400:     /**
401:      * Crops image.
402:      * @param  mixed  x-offset in pixels or percent
403:      * @param  mixed  y-offset in pixels or percent
404:      * @param  mixed  width in pixels or percent
405:      * @param  mixed  height in pixels or percent
406:      * @return self
407:      */
408:     public function crop($left, $top, $width, $height)
409:     {
410:         list($left, $top, $width, $height) = static::calculateCutout($this->getWidth(), $this->getHeight(), $left, $top, $width, $height);
411:         $newImage = static::fromBlank($width, $height, self::RGB(0, 0, 0, 127))->getImageResource();
412:         imagecopy($newImage, $this->getImageResource(), 0, 0, $left, $top, $width, $height);
413:         $this->image = $newImage;
414:         return $this;
415:     }
416: 
417: 
418:     /**
419:      * Calculates dimensions of cutout in image.
420:      * @param  mixed  source width
421:      * @param  mixed  source height
422:      * @param  mixed  x-offset in pixels or percent
423:      * @param  mixed  y-offset in pixels or percent
424:      * @param  mixed  width in pixels or percent
425:      * @param  mixed  height in pixels or percent
426:      * @return array
427:      */
428:     public static function calculateCutout($srcWidth, $srcHeight, $left, $top, $newWidth, $newHeight)
429:     {
430:         if (substr($newWidth, -1) === '%') {
431:             $newWidth = round($srcWidth / 100 * $newWidth);
432:         }
433:         if (substr($newHeight, -1) === '%') {
434:             $newHeight = round($srcHeight / 100 * $newHeight);
435:         }
436:         if (substr($left, -1) === '%') {
437:             $left = round(($srcWidth - $newWidth) / 100 * $left);
438:         }
439:         if (substr($top, -1) === '%') {
440:             $top = round(($srcHeight - $newHeight) / 100 * $top);
441:         }
442:         if ($left < 0) {
443:             $newWidth += $left; $left = 0;
444:         }
445:         if ($top < 0) {
446:             $newHeight += $top; $top = 0;
447:         }
448:         $newWidth = min((int) $newWidth, $srcWidth - $left);
449:         $newHeight = min((int) $newHeight, $srcHeight - $top);
450:         return array($left, $top, $newWidth, $newHeight);
451:     }
452: 
453: 
454:     /**
455:      * Sharpen image.
456:      * @return self
457:      */
458:     public function sharpen()
459:     {
460:         imageconvolution($this->getImageResource(), array( // my magic numbers ;)
461:             array( -1, -1, -1 ),
462:             array( -1, 24, -1 ),
463:             array( -1, -1, -1 ),
464:         ), 16, 0);
465:         return $this;
466:     }
467: 
468: 
469:     /**
470:      * Puts another image into this image.
471:      * @param  Image
472:      * @param  mixed  x-coordinate in pixels or percent
473:      * @param  mixed  y-coordinate in pixels or percent
474:      * @param  int  opacity 0..100
475:      * @return self
476:      */
477:     public function place(Image $image, $left = 0, $top = 0, $opacity = 100)
478:     {
479:         $opacity = max(0, min(100, (int) $opacity));
480: 
481:         if (substr($left, -1) === '%') {
482:             $left = round(($this->getWidth() - $image->getWidth()) / 100 * $left);
483:         }
484: 
485:         if (substr($top, -1) === '%') {
486:             $top = round(($this->getHeight() - $image->getHeight()) / 100 * $top);
487:         }
488: 
489:         if ($opacity === 100) {
490:             imagecopy(
491:                 $this->getImageResource(), $image->getImageResource(),
492:                 $left, $top, 0, 0, $image->getWidth(), $image->getHeight()
493:             );
494: 
495:         } elseif ($opacity <> 0) {
496:             imagecopymerge(
497:                 $this->getImageResource(), $image->getImageResource(),
498:                 $left, $top, 0, 0, $image->getWidth(), $image->getHeight(),
499:                 $opacity
500:             );
501:         }
502:         return $this;
503:     }
504: 
505: 
506:     /**
507:      * Saves image to the file.
508:      * @param  string  filename
509:      * @param  int  quality 0..100 (for JPEG and PNG)
510:      * @param  int  optional image type
511:      * @return bool TRUE on success or FALSE on failure.
512:      */
513:     public function save($file = NULL, $quality = NULL, $type = NULL)
514:     {
515:         if ($type === NULL) {
516:             switch (strtolower(pathinfo($file, PATHINFO_EXTENSION))) {
517:                 case 'jpg':
518:                 case 'jpeg':
519:                     $type = self::JPEG;
520:                     break;
521:                 case 'png':
522:                     $type = self::PNG;
523:                     break;
524:                 case 'gif':
525:                     $type = self::GIF;
526:             }
527:         }
528: 
529:         switch ($type) {
530:             case self::JPEG:
531:                 $quality = $quality === NULL ? 85 : max(0, min(100, (int) $quality));
532:                 return imagejpeg($this->getImageResource(), $file, $quality);
533: 
534:             case self::PNG:
535:                 $quality = $quality === NULL ? 9 : max(0, min(9, (int) $quality));
536:                 return imagepng($this->getImageResource(), $file, $quality);
537: 
538:             case self::GIF:
539:                 return $file === NULL ? imagegif($this->getImageResource()) : imagegif($this->getImageResource(), $file); // PHP bug #44591
540: 
541:             default:
542:                 throw new InvalidArgumentException("Unsupported image type.");
543:         }
544:     }
545: 
546: 
547:     /**
548:      * Outputs image to string.
549:      * @param  int  image type
550:      * @param  int  quality 0..100 (for JPEG and PNG)
551:      * @return string
552:      */
553:     public function toString($type = self::JPEG, $quality = NULL)
554:     {
555:         ob_start();
556:         $this->save(NULL, $quality, $type);
557:         return ob_get_clean();
558:     }
559: 
560: 
561:     /**
562:      * Outputs image to string.
563:      * @return string
564:      */
565:     public function __toString()
566:     {
567:         try {
568:             return $this->toString();
569: 
570:         } catch (\Exception $e) {
571:             trigger_error("Exception in " . __METHOD__ . "(): {$e->getMessage()} in {$e->getFile()}:{$e->getLine()}", E_USER_ERROR);
572:         }
573:     }
574: 
575: 
576:     /**
577:      * Outputs image to browser.
578:      * @param  int  image type
579:      * @param  int  quality 0..100 (for JPEG and PNG)
580:      * @return bool TRUE on success or FALSE on failure.
581:      */
582:     public function send($type = self::JPEG, $quality = NULL)
583:     {
584:         if ($type !== self::GIF && $type !== self::PNG && $type !== self::JPEG) {
585:             throw new InvalidArgumentException("Unsupported image type.");
586:         }
587:         header('Content-Type: ' . image_type_to_mime_type($type));
588:         return $this->save(NULL, $quality, $type);
589:     }
590: 
591: 
592:     /**
593:      * Call to undefined method.
594:      *
595:      * @param  string  method name
596:      * @param  array   arguments
597:      * @return mixed
598:      * @throws MemberAccessException
599:      */
600:     public function __call($name, $args)
601:     {
602:         $function = 'image' . $name;
603:         if (function_exists($function)) {
604:             foreach ($args as $key => $value) {
605:                 if ($value instanceof self) {
606:                     $args[$key] = $value->getImageResource();
607: 
608:                 } elseif (is_array($value) && isset($value['red'])) { // rgb
609:                     $args[$key] = imagecolorallocatealpha(
610:                         $this->getImageResource(),
611:                         $value['red'], $value['green'], $value['blue'], $value['alpha']
612:                     );
613:                 }
614:             }
615:             array_unshift($args, $this->getImageResource());
616: 
617:             $res = call_user_func_array($function, $args);
618:             return is_resource($res) && get_resource_type($res) === 'gd' ? $this->setImageResource($res) : $res;
619:         }
620: 
621:         return parent::__call($name, $args);
622:     }
623: 
624: }
625: 
626: 
627: /**
628:  * The exception that indicates invalid image file.
629:  */
630: class UnknownImageFileException extends \Exception
631: {
632: }
633: 
Nette Framework 2.0.14 API API documentation generated by ApiGen 2.8.0