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

Classes

Interfaces

Exceptions

  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Other releases
  • Nette homepage
 1: <?php
 2: 
 3: /**
 4:  * This file is part of the Nette Framework (https://nette.org)
 5:  * Copyright (c) 2004 David Grudl (http://davidgrudl.com)
 6:  * @package Nette\Application\UI
 7:  */
 8: 
 9: 
10: 
11: /**
12:  * Component multiplier.
13:  *
14:  * @author     David Grudl
15:  * @package Nette\Application\UI
16:  */
17: class Multiplier extends PresenterComponent
18: {
19:     /** @var Callback */
20:     private $factory;
21: 
22: 
23:     /**
24:      * @param callable
25:      */
26:     public function __construct($factory)
27:     {
28:         parent::__construct();
29:         $this->factory = new Callback($factory);
30:     }
31: 
32: 
33:     protected function createComponent($name)
34:     {
35:         return $this->factory->invoke($name, $this);
36:     }
37: 
38: }
39: 
Nette Framework 2.0.18 (for PHP 5.2, un-prefixed) API documentation generated by ApiGen 2.8.0