X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2Fexamples%2FProfileGetFields.php;h=eff419870a5921a5c50987018226e7a5d9ef5864;hb=e9892356ef3d00173773eafbc981e1efa0982f31;hp=b7984ab8d3ddec276c49e78852379374193129fe;hpb=c3d3e837a95ac3f453bfd75ab5ddf2b075e3443f;p=civicrm-core.git diff --git a/api/v3/examples/ProfileGetFields.php b/api/v3/examples/ProfileGetFields.php index b7984ab8d3..eff419870a 100644 --- a/api/v3/examples/ProfileGetFields.php +++ b/api/v3/examples/ProfileGetFields.php @@ -38,7 +38,7 @@ function profile_getfields_expectedresult(){ 'title' => 'First Name', 'help_pre' => '', 'help_post' => '', - 'entity' => 'Contact', + 'entity' => 'contact', 'name' => 'first_name', 'type' => 2, 'maxlength' => 64, @@ -48,13 +48,14 @@ function profile_getfields_expectedresult(){ 'headerPattern' => '/^first|(f(irst\s)?name)$/i', 'dataPattern' => '/^\w+$/', 'export' => true, + 'api.aliases' => array(), ), 'last_name' => array( 'api.required' => '1', 'title' => 'Last Name', 'help_pre' => '', 'help_post' => '', - 'entity' => 'Contact', + 'entity' => 'contact', 'name' => 'last_name', 'type' => 2, 'maxlength' => 64, @@ -64,13 +65,14 @@ function profile_getfields_expectedresult(){ 'headerPattern' => '/^last|(l(ast\s)?name)$/i', 'dataPattern' => '/^\w+(\s\w+)?+$/', 'export' => true, + 'api.aliases' => array(), ), 'email-primary' => array( 'api.required' => 1, 'title' => 'Email', 'help_pre' => '', 'help_post' => '', - 'entity' => 'Email', + 'entity' => 'email', 'api.aliases' => array( '0' => 'email-Primary', ), @@ -90,7 +92,7 @@ function profile_getfields_expectedresult(){ 'title' => 'Phone', 'help_pre' => '', 'help_post' => '', - 'entity' => 'Phone', + 'entity' => 'phone', 'name' => 'phone', 'type' => 2, 'maxlength' => 32, @@ -100,13 +102,14 @@ function profile_getfields_expectedresult(){ 'headerPattern' => '/phone/i', 'dataPattern' => '/^[\d\(\)\-\.\s]+$/', 'export' => true, + 'api.aliases' => array(), ), 'country-1' => array( 'api.required' => '1', 'title' => 'Country', 'help_pre' => '', 'help_post' => '', - 'entity' => 'Address', + 'entity' => 'address', 'name' => 'country_id', 'type' => 1, 'FKClassName' => 'CRM_Core_DAO_Country', @@ -116,13 +119,14 @@ function profile_getfields_expectedresult(){ 'labelColumn' => 'name', 'nameColumn' => 'iso_code', ), + 'api.aliases' => array(), ), 'state_province-1' => array( 'api.required' => '1', 'title' => 'State', 'help_pre' => '', 'help_post' => '', - 'entity' => 'Address', + 'entity' => 'address', 'name' => 'state_province_id', 'type' => 1, 'FKClassName' => 'CRM_Core_DAO_StateProvince', @@ -131,13 +135,14 @@ function profile_getfields_expectedresult(){ 'keyColumn' => 'id', 'labelColumn' => 'name', ), + 'api.aliases' => array(), ), 'postal_code-1' => array( 'api.required' => 0, 'title' => 'Postal Code', 'help_pre' => '', 'help_post' => '', - 'entity' => 'Address', + 'entity' => 'address', 'name' => 'postal_code', 'type' => 2, 'maxlength' => 12, @@ -147,13 +152,14 @@ function profile_getfields_expectedresult(){ 'headerPattern' => '/postal|zip/i', 'dataPattern' => '/\d?\d{4}(-\d{4})?/', 'export' => true, + 'api.aliases' => array(), ), 'custom_1' => array( 'api.required' => '1', 'title' => 'first_name', 'help_pre' => '', 'help_post' => '', - 'entity' => 'Contact', + 'entity' => 'contact', 'label' => '_addCustomFieldToProfile', 'groupTitle' => '_addCustomFie', 'data_type' => 'String', @@ -173,6 +179,7 @@ function profile_getfields_expectedresult(){ 'time_format' => '', 'name' => 'custom_1', 'type' => 2, + 'api.aliases' => array(), ), 'profile_id' => array( 'api.required' => true,