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