references:joomla.framework:application:jsearchhelper-inareainArea
Determines whether or not the the specified areas intersect with the areas that the search plugin handles. Syntaxboolean inArea ( $formAreas, $pluginAreas )
ExamplesExample $areas = array( 'weblinks' => 'Weblinks' ); $formAreas = array( 'content', 'contacts', 'weblinks' ); if (JSearchHelper::inAreas( $formAreas, $areas )) { echo 'Search'; } else { echo 'Don't Search'; } will produce: Result Search Normally, the $formAreas array would come from the form. |


