public function validateSearchIgnoreWordsFile($originFile)
	{
		$originFilePath = $this->originPath . '/' . $originFile;

		if (!$this->safeMode)
		{
			/** @var $words */
			include($originFilePath);

			$defined_variables = get_defined_vars();
			if (sizeof($defined_variables) != 3 || !isset($defined_variables['words']) || gettype($defined_variables['words']) != 'array')
			{
				$this->output->addMessage(Output::FATAL, 'Must only contain the words-array', $originFile);
				return;
			}
		}

		else
		{
			/** @var $words */
			$words = ValidatorRunner::langParser($originFilePath);
			$this->output->addMessage(Output::NOTICE, '<bg=yellow;options=bold>[Safe Mode]</> Manually run the translation validator to check word variables.', $originFile);
		}

		foreach ($words as $word)
		{
			if (gettype($word) != 'string')
			{
				//@todo use $i
				$this->output->addMessage(Output::FATAL, 'Must only contain entries of type string: ' . serialize($word), $originFile);
			}
		}
	}
public function validateSearchIgnoreWordsFile($originFile)
	{
		$originFilePath = $this->originPath . '/' . $originFile;

		if (!$this->safeMode)
		{
			/** @var $words */
			include($originFilePath);

			$defined_variables = get_defined_vars();
			if (sizeof($defined_variables) != 3 || !isset($defined_variables['words']) || gettype($defined_variables['words']) != 'array')
			{
				$this->output->addMessage(Output::FATAL, 'Must only contain the words-array', $originFile);
				return;
			}
		}

		else
		{
			/** @var $words */
			$words = ValidatorRunner::langParser($originFilePath);
			$this->output->addMessage(Output::NOTICE, '<bg=yellow;options=bold>[Safe Mode]</> Manually run the translation validator to check word variables.', $originFile);
		}

		foreach ($words as $word)
		{
			if (gettype($word) != 'string')
			{
				//@todo use $i
				$this->output->addMessage(Output::FATAL, 'Must only contain entries of type string: ' . serialize($word), $originFile);
			}
		}
	}
public function validateSearchIgnoreWordsFile ( $ originFile ) { $ originFilePath = $ this -> originPath . '/' . $ originFile ; if ( ! $ this -> safeMode ) { /** @var $words */ include ( $ originFilePath ) ; $ defined_variables = get_defined_vars ( ) ; if ( sizeof ( $ defined_variables ) != 3 || ! isset ( $ defined_variables [ 'words' ] ) || gettype ( $ defined_variables [ 'words' ] ) != 'array' ) { $ this -> output -> addMessage ( Output :: FATAL , 'Must only contain the words-array' , $ originFile ) ; return ; } } else { /** @var $words */ $ words = ValidatorRunner :: langParser ( $ originFilePath ) ; $ this -> output -> addMessage ( Output :: NOTICE , '<bg=yellow;options=bold>[Safe Mode]</> Manually run the translation validator to check word variables.' , $ originFile ) ; } foreach ( $ words as $ word ) { if ( gettype ( $ word ) != 'string' ) { //@todo use $i $ this -> output -> addMessage ( Output :: FATAL , 'Must only contain entries of type string: ' . serialize ( $ word ) , $ originFile ) ; } } }
Validates the search_ignore_words.php file

Files must only contain the variable $words.
This variable must be an array of string entries.

@todo		Check for template vars and html

@param	string	$originFile		File to validate
@return	null
Validates the search_ignore_words . php file