| @@ 101-107 (lines=7) @@ | ||
| 98 | $this->convertPolicyIdArrayToQueryArray($policies) |
|
| 99 | ); |
|
| 100 | } |
|
| 101 | if (!empty($removeAces)) { |
|
| 102 | $queryArray = array_replace($queryArray, $this->convertAclToQueryArray( |
|
| 103 | $removeAces, |
|
| 104 | Constants::CONTROL_REMOVE_ACE_PRINCIPAL, |
|
| 105 | Constants::CONTROL_REMOVE_ACE_PERMISSION |
|
| 106 | )); |
|
| 107 | } |
|
| 108 | if (!empty($addAces)) { |
|
| 109 | $queryArray = array_replace($queryArray, $this->convertAclToQueryArray( |
|
| 110 | $addAces, |
|
| @@ 108-114 (lines=7) @@ | ||
| 105 | Constants::CONTROL_REMOVE_ACE_PERMISSION |
|
| 106 | )); |
|
| 107 | } |
|
| 108 | if (!empty($addAces)) { |
|
| 109 | $queryArray = array_replace($queryArray, $this->convertAclToQueryArray( |
|
| 110 | $addAces, |
|
| 111 | Constants::CONTROL_ADD_ACE_PRINCIPAL, |
|
| 112 | Constants::CONTROL_ADD_ACE_PERMISSION |
|
| 113 | )); |
|
| 114 | } |
|
| 115 | if ($contentStream) { |
|
| 116 | $queryArray['content'] = $contentStream; |
|
| 117 | } |
|
| @@ 127-133 (lines=7) @@ | ||
| 124 | Constants::CONTROL_REMOVE_ACE_PERMISSION |
|
| 125 | )); |
|
| 126 | } |
|
| 127 | if (!empty($addAces)) { |
|
| 128 | $queryArray = array_replace($queryArray, $this->convertAclToQueryArray( |
|
| 129 | $addAces, |
|
| 130 | Constants::CONTROL_ADD_ACE_PRINCIPAL, |
|
| 131 | Constants::CONTROL_ADD_ACE_PERMISSION |
|
| 132 | )); |
|
| 133 | } |
|
| 134 | return $queryArray; |
|
| 135 | } |
|
| 136 | ||