PEAR_PackageUpdate::setPreferences – Sets all preferences at once.


require_once 'PEAR/PackageUpdate.php';

boolean PEAR_PackageUpdate::setPreferences ( array $preferences )


Sets a group of preference with associated values, all at once. Invalid preference is ignored (no error raised).


since 0.4.0a1

This function can not be called statically.

Return value

boolean - TRUE if all the preferences were set properly, FALSE otherwise.

Sets the given preference to the given value. (Previous) Updates the source for the package. (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.