boolean PEAR_PackageUpdate::setPreference (
string $pref
, string $value
)
Sets one of the given preference to the given value. Both preference and value, should have valid values.
throws PEAR_PACKAGEUPDATE_ERROR_INVALIDPREF
,
when invalid preference is used (PEAR_PACKAGEUPDATE_PREF_NOUPDATES,
PEAR_PACKAGEUPDATE_PREF_NEXTRELEASE, PEAR_PACKAGEUPDATE_PREF_TYPE, PEAR_PACKAGEUPDATE_PREF_STATE).
since 0.4.0a1
This function can not be called statically.
boolean - TRUE if the preference was set properly, FALSE otherwise.