/** * Helper main function * @return String HTML to be inserted in the view * @param Array $structureArray [optional] Structure in an array form */ public function StructureEditor($structureArray = array()) { $oPageDivs = new Pagdivspage(); $this->listDraftContentByPage = $oPageDivs->getDivsDraft(); $grpDB = new Usersgroups(); $this->groups = $grpDB->fetchLabelstoFlatArray(); $this->addNodes($structureArray); return $this->toReturn; }