Connects the plugin DB object managers through hierarchical relationships.
Description
See also
Source
File: src/torro-forms.php
protected function connect_db_object_managers() { $this->forms->add_child_manager( 'form_categories', $this->form_categories ); $this->forms->add_child_manager( 'containers', $this->containers ); $this->forms->add_child_manager( 'submissions', $this->submissions ); $this->form_categories->add_parent_manager( 'forms', $this->forms ); $this->containers->add_parent_manager( 'forms', $this->forms ); $this->containers->add_child_manager( 'elements', $this->elements ); $this->elements->add_parent_manager( 'containers', $this->containers ); $this->elements->add_child_manager( 'element_choices', $this->element_choices ); $this->elements->add_child_manager( 'element_settings', $this->element_settings ); $this->element_choices->add_parent_manager( 'elements', $this->elements ); $this->element_settings->add_parent_manager( 'elements', $this->elements ); $this->submissions->add_parent_manager( 'forms', $this->forms ); $this->submissions->add_child_manager( 'submission_values', $this->submission_values ); $this->submission_values->add_parent_manager( 'submissions', $this->submissions ); }
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |