Changeset 7813 for sandbox


Ignore:
Timestamp:
01/30/13 17:13:44 (11 years ago)
Author:
alexandrecorreia
Message:

Ticket #2507 - Ajustando os padrões dos nomes das variáveis

Location:
sandbox/webservice/api/rest/admin
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • sandbox/webservice/api/rest/admin/CreateUserResource.php

    r7810 r7813  
    2525                                $common = new CommonFunctions(); 
    2626 
    27                                 $loginUser              = trim($this->getParam('account_login')); 
    28                                 $emailUser              = trim($this->getParam('account_email')); 
    29                                 $nameUser               = trim($this->getParam('account_name')); 
    30                                 $profileUser    = trim($this->getParam('account_profile')); 
    31                                 $passwordUser   = trim($this->getParam('account_password')); 
    32                                 $rePasswordUser = trim($this->getParam('account_re_password')); 
    33                                 $phoneUser              = trim($this->getParam('account_phone')); 
    34                                 $cpfUser                = trim($this->getParam('account_cpf')); 
    35                                 $rgUser                 = trim($this->getParam('account_rg')); 
    36                                 $rgUF                   = trim($this->getParam('account_rg_uf')); 
    37                                 $description    = trim($this->getParam('account_description')); 
     27                                $loginUser              = trim($this->getParam('accountLogin')); 
     28                                $emailUser              = trim($this->getParam('accountEmail')); 
     29                                $nameUser               = trim($this->getParam('accountName')); 
     30                                $profileUser    = trim($this->getParam('accountProfile')); 
     31                                $passwordUser   = trim($this->getParam('accountPassword')); 
     32                                $rePasswordUser = trim($this->getParam('accountRePassword')); 
     33                                $phoneUser              = trim($this->getParam('accountPhone')); 
     34                                $cpfUser                = trim($this->getParam('accountCpf')); 
     35                                $rgUser                 = trim($this->getParam('accountRg')); 
     36                                $rgUF                   = trim($this->getParam('accountRgUf')); 
     37                                $description    = trim($this->getParam('accountDescription')); 
    3838 
    3939                                // Field Validation 
  • sandbox/webservice/api/rest/admin/DeleteUserResource.php

    r7810 r7813  
    2020                        if( $this->validatePermission($permission) )     
    2121                        {        
    22                                 $uidUser                = $this->getParam('account_uid_del'); 
    23                                 $uidNumberUser  = $this->getParam('account_uidnumber_del'); 
     22                                $uidUser                = $this->getParam('accountUidDel'); 
     23                                $uidNumberUser  = $this->getParam('accountUidNumberDel'); 
    2424 
    2525                                //Field Validation 
  • sandbox/webservice/api/rest/admin/EditUserResource.php

    r7810 r7813  
    3333                                        // Return fields 
    3434                                        $return = array(); 
    35                                         $return['account_uidnumber']    = $fields['uidnumber']; 
    36                                         $return['account_login']                = $fields['uid']; 
    37                                         $return['account_email']                = $fields['mail']; 
    38                                         $return['account_name']                 = $fields['givenname']." ".$fields['sn']; 
    39                                         $return['account_phone']                = $fields['telephonenumber'];    
    40                                         $return['account_cpf']                  = $fields['corporative_information_cpf']; 
    41                                         $return['account_rg']                   = $fields['corporative_information_rg']; 
    42                                         $return['account_rg_uf']                = $fields['corporative_information_rguf']; 
    43                                         $return['account_description']  = $fields['corporative_information_description']; 
     35                                        $return['accountUidnumber']             = $fields['uidnumber']; 
     36                                        $return['accountLogin']                 = $fields['uid']; 
     37                                        $return['accountEmail']                 = $fields['mail']; 
     38                                        $return['accountName']                  = $fields['givenname']." ".$fields['sn']; 
     39                                        $return['accountPhone']                 = $fields['telephonenumber'];    
     40                                        $return['accountCpf']                   = $fields['corporative_information_cpf']; 
     41                                        $return['accountRg']                    = $fields['corporative_information_rg']; 
     42                                        $return['accountRgUf']                  = $fields['corporative_information_rguf']; 
     43                                        $return['accountDescription']   = $fields['corporative_information_description']; 
    4444                                         
    4545                                        $this->setResult( array( "result" => $return )); 
  • sandbox/webservice/api/rest/admin/RenameUserResource.php

    r7810 r7813  
    2222                        if( $this->validatePermission($permission) )     
    2323                        {        
    24                                 $uidUser        = $this->getParam('account_uid_rename'); 
    25                                 $uidNewUser = $this->getParam('account_uid_new_rename'); 
     24                                $uidUser        = $this->getParam('accountUidRename'); 
     25                                $uidNewUser = $this->getParam('accountUidNewRename'); 
    2626                                                                                            
    2727                                // Field Validation 
  • sandbox/webservice/api/rest/admin/SearchUserResource.php

    r7810 r7813  
    2121                        if( $this->validatePermission($permission) )     
    2222                        {        
    23                                 $searchUser = $this->getParam('account_search_user'); 
     23                                $searchUser = $this->getParam('accountSearchUser'); 
    2424 
    2525                                if( trim($searchUser) == "" && isset($searchUser) )      
  • sandbox/webservice/api/rest/admin/UpdateUserResource.php

    r7810 r7813  
    2525                                $common = new CommonFunctions(); 
    2626 
    27                                 $uidNumber              = trim($this->getParam('account_uidnumber_up')); 
    28                                 $loginUser              = trim($this->getParam('account_login_up')); 
    29                                 $emailUser              = trim($this->getParam('account_email_up')); 
    30                                 $nameUser               = trim($this->getParam('account_name_up')); 
    31                                 $passwordUser   = trim($this->getParam('account_password_up')); 
    32                                 $rePasswordUser = trim($this->getParam('account_re_password_up')); 
    33                                 $phoneUser              = trim($this->getParam('account_phone_up')); 
    34                                 $cpfUser                = trim($this->getParam('account_cpf_up')); 
    35                                 $rgUser                 = trim($this->getParam('account_rg_up')); 
    36                                 $rgUF                   = trim($this->getParam('account_rg_uf_up')); 
    37                                 $description    = trim($this->getParam('account_description_up')); 
     27                                $uidNumber              = trim($this->getParam('accountUidNumber')); 
     28                                $loginUser              = trim($this->getParam('accountLogin')); 
     29                                $emailUser              = trim($this->getParam('accountEmail')); 
     30                                $nameUser               = trim($this->getParam('accountName')); 
     31                                $passwordUser   = trim($this->getParam('accountPassword')); 
     32                                $rePasswordUser = trim($this->getParam('accountRePassword')); 
     33                                $phoneUser              = trim($this->getParam('accountPhone')); 
     34                                $cpfUser                = trim($this->getParam('accountCpf')); 
     35                                $rgUser                 = trim($this->getParam('accountRg')); 
     36                                $rgUF                   = trim($this->getParam('accountRgUf')); 
     37                                $description    = trim($this->getParam('accountDescription')); 
    3838 
    3939                                // Field Validation 
Note: See TracChangeset for help on using the changeset viewer.