private function checkPackageRequirements($package = '')
	{
		if ($package == '')
		{
			return false;
		}

		$installed_exts = get_loaded_extensions();
		if (!in_array($package, $installed_exts))
		{
			$this->setError(\Lang::txt('[ERROR] You are missing the required PHP package %s.', $package));
			return false;
		}

		return true;
	}
private function checkPackageRequirements($package = '')
	{
		if ($package == '')
		{
			return false;
		}

		$installed_exts = get_loaded_extensions();
		if (!in_array($package, $installed_exts))
		{
			$this->setError(\Lang::txt('[ERROR] You are missing the required PHP package %s.', $package));
			return false;
		}

		return true;
	}
private function checkPackageRequirements ( $ package = '' ) { if ( $ package == '' ) { return false ; } $ installed_exts = get_loaded_extensions ( ) ; if ( ! in_array ( $ package , $ installed_exts ) ) { $ this -> setError ( \ Lang :: txt ( '[ERROR] You are missing the required PHP package %s.' , $ package ) ) ; return false ; } return true ; }
Check if a required package is installed

@param   integer  $package  Package name
@return  boolean  True on success
Check if a required package is installed