예제 #1
0
파일: Visibility.php 프로젝트: ratbird/hope
 /**
  * Helpfunction to get all names for the settingstable
  *
  * @return array all visibility names
  */
 public static function getVisibilities()
 {
     return VisibilitySettings::getInstance()->getAllNames();
 }
예제 #2
0
 /**
  * Returns all Arguments for the SettingsPage
  * @return array Arguments for the SettingsPage
  */
 public function getHTMLArgs()
 {
     $privacy_states = VisibilitySettings::getInstance();
     $result['header_colspan'] = $privacy_states->count() + 1;
     $result['row_colspan'] = $privacy_states->count();
     $result['header_names'] = $privacy_states->getAllNames();
     $result['states'] = $privacy_states->getAllKeys();
     $result['entry'] = array();
     foreach ($this->getProfileSettings() as $child) {
         $child->getHTMLArgs($result['entry']);
     }
     return $result;
 }