public function setFilter($label, $value)
	{
		$label = strtolower($label);

		$filters = array(
			"select status" 	=> "filter_published",
			"select access"		=> "filter_access",
			"select language" 	=> "filter_language",
			"select tag"		=> "filter_tag",
			"select max levels"	=> "filter_level"
		);

		$this->click(array('xpath' => "//button[@data-original-title='Filter the list items.']"));
		$this->debug('I try to select the filters');

		foreach ($filters as $fieldName => $id)
		{
			if ($fieldName == $label)
			{
				$this->selectOptionInChosenByIdUsingJs($id, $value);
			}
		}

		$this->debug('Applied filters');
	}
public function setFilter($label, $value)
	{
		$label = strtolower($label);

		$filters = array(
			"select status" 	=> "filter_published",
			"select access"		=> "filter_access",
			"select language" 	=> "filter_language",
			"select tag"		=> "filter_tag",
			"select max levels"	=> "filter_level"
		);

		$this->click(array('xpath' => "//button[@data-original-title='Filter the list items.']"));
		$this->debug('I try to select the filters');

		foreach ($filters as $fieldName => $id)
		{
			if ($fieldName == $label)
			{
				$this->selectOptionInChosenByIdUsingJs($id, $value);
			}
		}

		$this->debug('Applied filters');
	}
public function setFilter ( $ label , $ value ) { $ label = strtolower ( $ label ) ; $ filters = array ( "select status" => "filter_published" , "select access" => "filter_access" , "select language" => "filter_language" , "select tag" => "filter_tag" , "select max levels" => "filter_level" ) ; $ this -> click ( array ( 'xpath' => "//button[@data-original-title='Filter the list items.']" ) ) ; $ this -> debug ( 'I try to select the filters' ) ; foreach ( $ filters as $ fieldName => $ id ) { if ( $ fieldName == $ label ) { $ this -> selectOptionInChosenByIdUsingJs ( $ id , $ value ) ; } } $ this -> debug ( 'Applied filters' ) ; }
Function to filter results in Joomla! Administrator.

@param   string  $label  Label of the Filter you want to use.
@param   string  $value  Value you want to set in the filters.

@return  void

@since   3.0.0
Function to filter results in Joomla! Administrator .