Conditions | 1 |
Paths | 1 |
Total Lines | 46 |
Code Lines | 40 |
Lines | 0 |
Ratio | 0 % |
1 | <?php if ( ! defined('EVENT_ESPRESSO_VERSION')) exit('No direct script access allowed'); |
||
122 | protected function __construct( $timezone = NULL ) { |
||
123 | $this->singular_item = __('Attendee','event_espresso'); |
||
124 | $this->plural_item = __('Attendees','event_espresso'); |
||
125 | $this->_tables = array( |
||
|
|||
126 | 'Attendee_CPT'=> new EE_Primary_Table('posts', 'ID'), |
||
127 | 'Attendee_Meta'=>new EE_Secondary_Table('esp_attendee_meta', 'ATTM_ID', 'ATT_ID') |
||
128 | ); |
||
129 | $this->_fields = array( |
||
130 | 'Attendee_CPT'=>array( |
||
131 | 'ATT_ID'=>new EE_Primary_Key_Int_Field('ID', __("Attendee ID", "event_espresso")), |
||
132 | 'ATT_full_name'=>new EE_Plain_Text_Field('post_title', __("Attendee Full Name", "event_espresso"), false, __("Unknown", "event_espresso")), |
||
133 | 'ATT_bio'=>new EE_Post_Content_Field('post_content', __("Attendee Biography", "event_espresso"), false, __("No Biography Provided", "event_espresso")), |
||
134 | 'ATT_slug'=>new EE_Slug_Field('post_name', __("Attendee URL Slug", "event_espresso"), false), |
||
135 | 'ATT_created'=>new EE_Datetime_Field('post_date', __("Time Attendee Created", "event_espresso"), false, time()), |
||
136 | 'ATT_short_bio'=>new EE_Simple_HTML_Field('post_excerpt', __("Attendee Short Biography", "event_espresso"), true, __("No Biography Provided", "event_espresso")), |
||
137 | 'ATT_modified'=>new EE_Datetime_Field('post_modified', __("Time Attendee Last Modified", "event_espresso"), FALSE, time()), |
||
138 | 'ATT_author'=>new EE_WP_User_Field('post_author', __("Creator ID of the first Event attended", "event_espresso"), false ), |
||
139 | 'ATT_parent'=>new EE_DB_Only_Int_Field('post_parent', __("Parent Attendee (unused)", "event_espresso"), false, 0), |
||
140 | 'post_type'=>new EE_WP_Post_Type_Field('espresso_attendees'),// EE_DB_Only_Text_Field('post_type', __("Post Type of Attendee", "event_espresso"), false,'espresso_attendees'), |
||
141 | 'status' => new EE_WP_Post_Status_Field('post_status', __('Attendee Status', 'event_espresso'), false, 'publish') |
||
142 | ), |
||
143 | 'Attendee_Meta'=>array( |
||
144 | 'ATTM_ID'=> new EE_DB_Only_Int_Field('ATTM_ID', __('Attendee Meta Row ID','event_espresso'), false), |
||
145 | 'ATT_ID_fk'=>new EE_DB_Only_Int_Field('ATT_ID', __("Foreign Key to Attendee in Post Table", "event_espresso"), false), |
||
146 | 'ATT_fname'=>new EE_Plain_Text_Field('ATT_fname', __('First Name','event_espresso'), true, ''), |
||
1 ignored issue
–
show
|
|||
147 | 'ATT_lname'=>new EE_Plain_Text_Field('ATT_lname', __('Last Name','event_espresso'), true, ''), |
||
1 ignored issue
–
show
|
|||
148 | 'ATT_address'=>new EE_Plain_Text_Field('ATT_address', __('Address Part 1','event_espresso'), true, ''), |
||
1 ignored issue
–
show
|
|||
149 | 'ATT_address2'=>new EE_Plain_Text_Field('ATT_address2', __('Address Part 2','event_espresso'), true, ''), |
||
1 ignored issue
–
show
|
|||
150 | 'ATT_city'=>new EE_Plain_Text_Field('ATT_city', __('City','event_espresso'), true, ''), |
||
1 ignored issue
–
show
|
|||
151 | 'STA_ID'=>new EE_Foreign_Key_Int_Field('STA_ID', __('State','event_espresso'), true,0,'State'), |
||
152 | 'CNT_ISO'=>new EE_Foreign_Key_String_Field('CNT_ISO', __('Country','event_espresso'), true,'','Country'), |
||
153 | 'ATT_zip'=>new EE_Plain_Text_Field('ATT_zip', __('ZIP/Postal Code','event_espresso'), true, ''), |
||
1 ignored issue
–
show
|
|||
154 | 'ATT_email'=>new EE_Email_Field('ATT_email', __('Email Address','event_espresso'), true, ''), |
||
1 ignored issue
–
show
|
|||
155 | 'ATT_phone'=>new EE_Plain_Text_Field('ATT_phone', __('Phone','event_espresso'), true, '') |
||
1 ignored issue
–
show
|
|||
156 | )); |
||
157 | $this->_model_relations = array( |
||
158 | 'Registration'=>new EE_Has_Many_Relation(), |
||
159 | 'State'=>new EE_Belongs_To_Relation(), |
||
160 | 'Country'=>new EE_Belongs_To_Relation(), |
||
161 | 'Event'=>new EE_HABTM_Relation('Registration', FALSE ), |
||
162 | 'WP_User' => new EE_Belongs_To_Relation(), |
||
163 | ); |
||
164 | $this->_caps_slug = 'contacts'; |
||
165 | parent::__construct( $timezone ); |
||
166 | |||
167 | } |
||
168 | |||
284 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..