X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=Civi%2FAPI%2FSubscriber%2FDynamicFKAuthorization.php;h=7747d0a6285ecfbdcfbbf9e256c27bfb7dda31ce;hb=41de5d4a9d8bc932899308987824131a7b41a838;hp=94398ac0caa9cc53d859acb255b81ea8512fa04e;hpb=db3034eba9b65bda5bfba6642679c7631746578b;p=civicrm-core.git diff --git a/Civi/API/Subscriber/DynamicFKAuthorization.php b/Civi/API/Subscriber/DynamicFKAuthorization.php index 94398ac0ca..7747d0a628 100644 --- a/Civi/API/Subscriber/DynamicFKAuthorization.php +++ b/Civi/API/Subscriber/DynamicFKAuthorization.php @@ -1,27 +1,11 @@ the actions for which we want to manage permissions + * The actions for which we want to manage permissions + * + * @var string[] */ protected $actions; /** - * @var string, SQL. Given a file ID, determine the entity+table it's attached to. + * SQL SELECT query - Given a file ID, determine the entity+table it's attached to. * * ex: "SELECT if(cf.id,1,0) as is_valid, cef.entity_table, cef.entity_id * FROM civicrm_file cf @@ -88,14 +76,18 @@ class DynamicFKAuthorization implements EventSubscriberInterface { * - is_valid: "1" if %1 identifies an actual record; otherwise "0" * - entity_table: NULL or the name of a related table * - entity_id: NULL or the ID of a row in the related table + * + * @var string */ protected $lookupDelegateSql; /** - * @var string, SQL. Get a list of (field_name, table_name, extends) tuples. + * SQL SELECT query. Get a list of (field_name, table_name, extends) tuples. * * For example, one tuple might be ("custom_123", "civicrm_value_mygroup_4", * "Activity"). + * + * @var string */ protected $lookupCustomFieldSql; @@ -107,7 +99,9 @@ class DynamicFKAuthorization implements EventSubscriberInterface { protected $lookupCustomFieldCache; /** - * @var array list of related tables for which FKs are allowed + * List of related tables for which FKs are allowed. + * + * @var array */ protected $allowedDelegates;