/** * Helpfunction to get all names for the settingstable * * @return array all visibility names */ public static function getVisibilities() { return VisibilitySettings::getInstance()->getAllNames(); }
/** * 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; }