src-dev/Mouf/Controllers/SearchController.php
public function defaultAction($query, $selfedit = "false") {
		$this->selfedit = $selfedit;
		$this->query = $query;
		
		/*if ($selfedit == "true") {*/
			$this->moufManager = MoufManager::getMoufManager();
		/*} else {
			$this->moufManager = MoufManager::getMoufManagerHiddenInstance();
		}*/
		
		$this->searchUrls = array();
		foreach ($this->searchService->searchableServices as $service) {
			/* @var $service MoufSearchable */
			$this->searchUrls[] = array("name"=>$service->getSearchModuleName(), "url"=>ROOT_URL.$this->moufManager->findInstanceName($service)."/search");
		}
		
		$this->contentBlock->addFile(ROOT_PATH."src-dev/views/search/results.php", $this);
		$this->template->toHtml();	
	}
public function defaultAction($query, $selfedit = "false") {
		$this->selfedit = $selfedit;
		$this->query = $query;
		
		/*if ($selfedit == "true") {*/
			$this->moufManager = MoufManager::getMoufManager();
		/*} else {
			$this->moufManager = MoufManager::getMoufManagerHiddenInstance();
		}*/
		
		$this->searchUrls = array();
		foreach ($this->searchService->searchableServices as $service) {
			/* @var $service MoufSearchable */
			$this->searchUrls[] = array("name"=>$service->getSearchModuleName(), "url"=>ROOT_URL.$this->moufManager->findInstanceName($service)."/search");
		}
		
		$this->contentBlock->addFile(ROOT_PATH."src-dev/views/search/results.php", $this);
		$this->template->toHtml();	
	}
public function defaultAction ( $ query , $ selfedit = "false" ) { $ this -> selfedit = $ selfedit ; $ this -> query = $ query ; /*if ($selfedit == "true") {*/ $ this -> moufManager = MoufManager :: getMoufManager ( ) ; /*} else {
			$this->moufManager = MoufManager::getMoufManagerHiddenInstance();
		}*/ $ this -> searchUrls = array ( ) ; foreach ( $ this -> searchService -> searchableServices as $ service ) { /* @var $service MoufSearchable */ $ this -> searchUrls [ ] = array ( "name" => $ service -> getSearchModuleName ( ) , "url" => ROOT_URL . $ this -> moufManager -> findInstanceName ( $ service ) . "/search" ) ; } $ this -> contentBlock -> addFile ( ROOT_PATH . "src-dev/views/search/results.php" , $ this ) ; $ this -> template -> toHtml ( ) ; }
Performs a full-text search in Mouf.

@Action
@Logged
@param string $query The text to search.
@param string $selfedit If true, the name of the component must be a component from the Mouf framework itself (internal use only)
Performs a full - text search in Mouf .