public static function PartyPrimaryFields::getSources in Party 7
Get hold of primary field source information.
Parameters
string $data_set: Optionally provide a data set retrieve the sources for.
Return value
FALSE||array Returns source information or FALSE if the requested information is not available. See PartyPrimaryFields::$sources for the data structure. If $property is given this will be a single source. Otherwise if $data_set is given it will be an array of sources. If $data_set is NULL, the entire source array will be returned.
3 calls to PartyPrimaryFields::getSources()
- PartyPrimaryFields::buildFields in includes/
party.primary_fields.inc - Build the primary field information.
- PartyPrimaryFields::getSource in includes/
party.primary_fields.inc - Get the info of a particular source.
- PartyPrimaryFields::getSourcesByType in includes/
party.primary_fields.inc - Get hold of primary field sources by type.
File
- includes/
party.primary_fields.inc, line 178 - Primary field related functions and callbacks.
Class
- PartyPrimaryFields
- Helper class for primary fields.
Code
public static function getSources($data_set = NULL) {
if (!isset(self::$sources)) {
self::buildSources();
}
// If no data set is given, return the whole lot.
if (!isset($data_set)) {
return self::$sources;
}
return isset(self::$sources[$data_set]) ? self::$sources[$data_set]['sources'] : FALSE;
}