-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplasmid search
72 lines (44 loc) · 2.04 KB
/
plasmid search
1
searchDatabasehave a hidden field telling us which search we are doingstrain versus plasmidif it's strain we come to the existing codeelse if it's plasmidwe have a birficated search as in strain search where it choose to search for all versus just the individual elementsleftjoiner needs to be a subclass joiner classstrain_joiner subclassstrainLeft_joiner subclass of strain_joinerGenesSearch will become GenesSearchInsideStrainsAllelesSearch will become AllelesSearchInsideStrainsGeneChromosomeSearch GeneChromosomeSearchInsideStrainsGenesSearchInsideStrainsGenesSearchInsidePlasmidsGeneElementsSearchGenesSearch GenesSearchInsideStrains GenesSearchInsidePlasmidsthese two bottom classes have a the variable geneName_chkbox_htmlName is for an OR search of genes$theContributor = new LoadContributor();$theContributorArray = $theContributor->returnSpecificRecord($theStrainArray['contributorID_col']);echo $theContributorArray['contributorName_col'];new joiner class that just has the two functionsnew subclassJoinerForStrain will have the old joiner constructinnerjoiner becomes InnerJoiner_ForStrainsleftjoiner becomes LeftJoiner_ForStrainsStrainsSearch becomes StrainsSearch_ForStrainsParentStrainsSearch becomes ParentStrainsSearch_ForStrainsGeneChromosomeSearch becomes GeneChromosomeSearch_ForStrainsGenesSearch becomes GenesSearch_ForStrainsAllelesSearch becomes AllelesSearch_ForStrainsPlasmidsSearch becomes PlasmidsSearch_ForStrainsCoInjectionMarkerSearch becomes CoInjectionMarkerSearch_ForStrainsTransGenesChromosomesSearch becomes TransGenesChromosomesSearch_ForStrainsTransGenesSearch becomes TransGenesSearch_ForStrainscan CommentsSearch stay untouched?StrainCommentsSearch becomes StrainCommentsSearch_ForStrainsGeneCommentsSearch becomes GeneCommentsSearch_ForStrainsAlleleCommentsSearch becomes AlleleCommentsSearch_ForStrainsTransgeneCommentsSearch becomes TransgeneCommentsSearch_ForStrainsJoinerForStrainsdo search in pieces for comments because searching for comments requires special case code