/** * Login constructor. * * @param HTMLDocument $HTMLDocument * @param HTMLFormFactoryInterface $FormFactory */ public function __construct(HTMLDocument $HTMLDocument, HTMLFormFactoryInterface $FormFactory) { // Set form factory $FormFactory->setHTMLDocument($HTMLDocument); $this->formFactory = $FormFactory; // Create HTMLElement parent::__construct($HTMLDocument, $name = 'div', $value = '', $id = '', $class = 'identity-profile-box-container'); }
/** * Login constructor. * * @param HTMLDocument $HTMLDocument * @param HTMLFormFactoryInterface $FormFactory */ public function __construct(HTMLDocument $HTMLDocument, HTMLFormFactoryInterface $FormFactory) { // Set form factory $FormFactory->setHTMLDocument($HTMLDocument); $this->formFactory = $FormFactory; $this->htmlNode = $HTMLDocument->select('html')->item(0); // Create translator $this->translator = new Translator(new JsonProcessor(__DIR__ . '/../../../lang/')); // Set empty settings $this->setSettings(new LoginSettings()); $this->setThemeSettings(new ThemeSettings()); $this->setSocialSettings(new SocialSettings()); // Create HTMLElement parent::__construct($HTMLDocument, $name = 'div', $value = '', $id = '', $class = 'identity-login-box-container'); }