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
/** | |
6 * A class for creating new objects by the injector. | |
7 * | |
8 * @package framework | |
9 * @subpackage injector | |
10 */ | |
11 class InjectionCreator implements Factory { | |
12 | |
13 public function create($class, array $params = array()) { | |
14 $reflector = new ReflectionClass($class); |
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
class ReviewForm extends Form { | |
public function __construct($controller, $name) { | |
$fields = new FieldList( | |
TextField::create('Title', 'Title'), | |
HtmlEditorField::create('ReviewText', 'Write a Review'), | |
HiddenField::create('MemberID'), | |
HiddenField::create('NominationID'), | |
HiddenField::create('ID') |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |