L_OK = 0
This class represents an Entity with properties stored in the DB.
IdPs have properties of their own, and may have one or more Profiles. The profiles can override the institution-wide properties.
getAttributeValue(mixed|string|int attributeArray, string|int index1, string|int index2) :
This is a helper fuction to retrieve a value from two-dimensional arrays The function tests if the value for the first indes is defined and then the same with the second and finally returns the value if something on the way is not defined, NULL is returned
createTemporaryDirectory( purpose = installer, failIsFatal = 1) : mixed|string|int
create a temporary directory and return the location
one of 'installer', 'logo', 'test' defined the purpose of the directory
decides if a creation failure should cause an error; defaults to true
the tuple of: base path, absolute path for directory, directory name
getAttributes( optionName = NULL) : mixed|string|int
This function retrieves the entity's attributes.
If called with the optional parameter, only attribute values for the attribute name in $optionName are retrieved; otherwise, all attributes are retrieved. The retrieval is in-memory from the internal attributes class member - no DB callback, so changes in the database during the class instance lifetime are not considered.
optionally, the name of the attribute that is to be retrieved
of arrays of attributes which were set for this IdP
addAttribute( attrName, attrLang, attrValue) :
Adds an attribute for the entity instance into the database. Multiple instances of the same attribute are supported.
Name of the attribute. This must be a well-known value from the profile_option_dict table in the DB.
language of the attribute. Can be NULL.
Value of the attribute. Can be anything; will be stored in the DB as-is.
fetchRawDataByIndex( table, row) : string|bool
Retrieves data from the underlying tables, for situations where instantiating the IdP or Profile object is inappropriate
institution_option or profile_option
the data, or FALSE if something went wrong
isDataRestricted( table, row) :
Checks if a raw data pointer is public data (return value FALSE) or if yes who the authorised admins to view it are (return array of user IDs)
which database table is this about
row index of the table
FALSE if the data is public, an array of owners of the data if it is NOT public