Packages

  • 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
  • DateTime53
  • Environment
  • Framework
  • FreezableObject
  • Image
  • Object
  • ObjectMixin

Interfaces

  • IFreezable

Exceptions

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