Changeset 7941 for sandbox/webservice/api/rest/admin/UpdateUserResource.php
- Timestamp:
- 03/01/13 18:28:07 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/webservice/api/rest/admin/UpdateUserResource.php
r7882 r7941 37 37 $description = $common->convertChar(trim($this->getParam('accountDescription'))); 38 38 $mailQuota = trim($this->getParam('accountMailQuota')); 39 $birthDate = $common->mascaraBirthDate($this->getParam('accountBirthDate')); 40 $st = $this->getParam('accountSt'); 41 $city = $this->getParam('accountCity'); 42 $sex = $this->getParam('accountSex'); 39 43 40 44 // Field Validation … … 134 138 } 135 139 136 $fields['sn'] = implode(" ", $nameUser ); 137 $fields['telephonenumber'] = $common->mascaraPhone($phoneUser); 138 $fields['corporative_information_cpf'] = $common->mascaraCPF($cpfUser); 139 $fields['corporative_information_rg'] = $rgUser; 140 $fields['corporative_information_rguf'] = $rgUF; 141 $fields['corporative_information_description'] = $description; 142 $fields['mailquota'] = $mailQuota; 140 if( trim($nameUser) != "" ) 141 $fields['sn'] = implode(" ", $nameUser ); 142 143 if( trim($phoneUser) != "" ) 144 $fields['telephonenumber'] = $common->mascaraPhone($phoneUser); 145 146 if( trim($cpfUser) != "" ) 147 $fields['corporative_information_cpf'] = $common->mascaraCPF($cpfUser); 148 149 if( trim($rgUser) != "" ) 150 $fields['corporative_information_rg'] = $rgUser; 151 152 if( trim($rgUF) != "" ) 153 $fields['corporative_information_rguf'] = $rgUF; 154 155 if( trim($description) != "" ) 156 $fields['corporative_information_description'] = $description; 157 158 if( trim($mailQuota) != "" ) 159 $fields['mailquota'] = $mailQuota; 160 161 if( trim($birthDate) != "" ) 162 $fields['corporative_information_datanascimento'] = $birthDate; 163 164 if( trim($st) != "" ) 165 $fields['corporative_information_st'] = $st; 166 167 if( trim($city) != "" ) 168 $fields['corporative_information_city'] = $city; 169 170 if( trim($sex) != "" ) 171 $fields['corporative_information_sexo'] = $sex; 143 172 144 173 // Update Fields
Note: See TracChangeset
for help on using the changeset viewer.