Skip to content
Snippets Groups Projects
Commit 223671d0 authored by Eileen McNaughton's avatar Eileen McNaughton
Browse files

#2486 Add survey v4 api

parent 3b943db7
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@
*
* Generated from xml/schema/CRM/Campaign/Survey.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
* (GenCodeChecksum:45c10db72afe877c41ddb78b79153648)
* (GenCodeChecksum:8fec5a0ffb4667af4f00820de74aa577)
*/
/**
......@@ -474,6 +474,13 @@ class CRM_Campaign_DAO_Survey extends CRM_Core_DAO {
'entity' => 'Survey',
'bao' => 'CRM_Campaign_BAO_Survey',
'localizable' => 0,
'pseudoconstant' => [
'table' => 'civicrm_option_group',
'keyColumn' => 'id',
'labelColumn' => 'title',
'nameColumn' => 'name',
'condition' => 'name LIKE "civicrm_survey_%"',
],
'add' => '3.3',
],
'bypass_confirm' => [
......
<?php
/*
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC. All rights reserved. |
| |
| This work is published under the GNU AGPLv3 license with some |
| permitted exceptions and without any warranty. For full license |
| and copyright information, see https://civicrm.org/licensing |
+--------------------------------------------------------------------+
*/
namespace Civi\Api4;
/**
* Survey entity.
*
* @see https://docs.civicrm.org/user/en/latest/survey/what-is-civisurvey/
* @searchable secondary
* @since 5.43
* @package Civi\Api4
*/
class Survey extends Generic\DAOEntity {
}
......@@ -538,6 +538,8 @@ class api_v3_SyntaxConformanceTest extends CiviUnitTestCase {
'Logging',
// Skip message template because workflow_id/workflow_name are sync'd.
'MessageTemplate',
// Skip survey because the pseudoconstant will have no options.
'Survey',
];
if ($sequential === TRUE) {
return $entitiesWithout;
......
......@@ -214,6 +214,13 @@
<default>NULL</default>
<comment>Used to store option group id.</comment>
<add>3.3</add>
<pseudoconstant>
<table>civicrm_option_group</table>
<keyColumn>id</keyColumn>
<labelColumn>title</labelColumn>
<nameColumn>name</nameColumn>
<condition>name LIKE "civicrm_survey_%"</condition>
</pseudoconstant>
</field>
<field>
<name>bypass_confirm</name>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment