Namespaces

  • Nette
    • Application
    • Caching
    • Collections
    • Config
    • Forms
    • IO
    • Loaders
    • Mail
    • Reflection
    • Security
    • Templates
    • Web
  • None
  • PHP

Classes

  • ArrayTools
  • Callback
  • Component
  • ComponentContainer
  • Configurator
  • DateTime
  • Debug
  • Environment
  • Framework
  • FreezableObject
  • GenericRecursiveIterator
  • Image
  • ImageMagick
  • InstanceFilterIterator
  • Object
  • ObjectMixin
  • Paginator
  • RecursiveComponentIterator
  • ServiceLocator
  • SmartCachingIterator
  • String
  • Tools

Interfaces

  • IComponent
  • IComponentContainer
  • IDebuggable
  • IServiceLocator
  • ITranslator

Exceptions

  • AmbiguousServiceException
  • Overview
  • Namespace
  • Class
  • Tree
  • Other releases
 1: <?php
 2: 
 3: /**
 4:  * This file is part of the Nette Framework (https://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:  */
11: 
12: namespace Nette;
13: 
14: use Nette;
15: 
16: 
17: 
18: /**
19:  * The Nette Framework (https://nette.org)
20:  *
21:  * @author     David Grudl
22:  */
23: final class Framework
24: {
25: 
26:     /**#@+ Nette Framework version identification */
27:     const NAME = 'Nette Framework';
28: 
29:     const VERSION = '0.9.7';
30: 
31:     const REVISION = 'f0ec895 released on 2012-01-20';
32:     /**#@-*/
33: 
34: 
35: 
36:     /**
37:      * Static class - cannot be instantiated.
38:      */
39:     final public function __construct()
40:     {
41:         throw new \LogicException("Cannot instantiate static class " . get_class($this));
42:     }
43: 
44: 
45: 
46:     /**
47:      * Compares current Nette Framework version with given version.
48:      * @param  string
49:      * @return int
50:      */
51:     public static function compareVersion($version)
52:     {
53:         return version_compare($version, self::VERSION);
54:     }
55: 
56: 
57: 
58:     /**
59:      * Nette Framework promotion.
60:      * @return void
61:      */
62:     public static function promo($xhtml = TRUE)
63:     {
64:         echo '<a href="https://nette.org/" title="Nette Framework - The Most Innovative PHP Framework"><img ',
65:             'src="http://files.nette.org/icons/nette-powered.gif" alt="Powered by Nette Framework" width="80" height="15"',
66:             ($xhtml ? ' />' : '>'), '</a>';
67:     }
68: 
69: }
70: 
Nette Framework 0.9.7 API documentation generated by ApiGen 2.3.0