4
* This file is part of the Nette Framework (http://nette.org)
6
* Copyright (c) 2004 David Grudl (http://davidgrudl.com)
8
* For the full copyright and license information, please view
9
* the file license.txt that was distributed with this source code.
12
namespace Nette\Application\UI;
18
* Component multiplier.
22
class Multiplier extends PresenterComponent
28
public function __construct($factory)
30
parent::__construct();
31
$this->factory = Nette\Utils\Callback::check($factory);
35
protected function createComponent($name)
37
return call_user_func($this->factory, $name, $this);