예제 #1
0
파일: privacy.php 프로젝트: ratbird/hope
 /**
  * Performs bulk actions on the privacy settings of a user. This can be
  * either the setting of new default values or the changing of all privacy
  * values at once.
  * 
  * @return boolean Returns <b>true</b> if all visibilities have been set
  */
 public function bulk()
 {
     if ($default_visibility = Request::int('default')) {
         $this->about->set_default_homepage_visibility(Request::int('default'));
     }
     if ($visiblity = Request::int('all')) {
         if (Visibility::setAllSettingsForUser($visiblity)) {
             $this->reportSuccess(_('Die Sichtbarkeit der Profilelemente wurde gespeichert.'));
             return true;
         } else {
             $this->reportError(_('Die Sichtbarkeitseinstellungen der Profilelemente wurden nicht gespeichert!'));
         }
     }
     return false;
 }