Created
October 6, 2011 15:18
-
-
Save dg/1267660 to your computer and use it in GitHub Desktop.
MultiplierControl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class MultiplierControl extends Nette\Application\UI\Control | |
{ | |
private $factory; | |
public function __construct($factory) | |
{ | |
parent::__construct(); | |
$this->factory = $factory; | |
} | |
public function createComponent($name) | |
{ | |
return call_user_func($this->factory, $this, $name); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment