Version 4.3.0

This commit is contained in:
Neo committed 2025-12-19 05:47:12 -08:00
1 parent 96997ddd8e
commit fe1acf984a
1349 files changed
+116159 -67711

No files matched your search

@@ -47,14 +47,15 @@ class _FieldGroup
/**
* Get output for API
*
* @param \IPS\Member|NULL $authorizedMember The member making the API request or NULL for API Key / client_credentials
* @return array
* @apiresponse string name Group name
* @apiresponse [\IPS\core\ProfileFields\Api\Field] fields Fields
*/
public function apiOutput()
public function apiOutput( \IPS\Member $authorizedMember = NULL )
{
return array( 'name' => $this->name, 'fields' => array_map( function( $val ) {
return $val->apiOutput();
return array( 'name' => $this->name, 'fields' => array_map( function( $val ) use ( $authorizedMember ) {
return $val->apiOutput( $authorizedMember );
}, $this->values ) );
}
}