-
-
Save kjohnson/b52ec6846c8db536a2bb to your computer and use it in GitHub Desktop.
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 NF_Factory | |
{ | |
protected $_form; | |
public function __construct( $id ) | |
{ | |
$this->_form = new NF_Form( $id ); | |
return $this; | |
} | |
public function get() | |
{ | |
return $this->_form; | |
} | |
public function get_field( $id ) | |
{ | |
$form_id = $this->_form->get_id(); | |
return new NF_Field( $id, $form_id ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment