@@ 643-651 (lines=9) @@ | ||
640 | ) { |
|
641 | // set the start time for this reg step |
|
642 | if (! $this->transaction->set_reg_step_initiated($reg_step->slug())) { |
|
643 | if (WP_DEBUG) { |
|
644 | EE_Error::add_error( |
|
645 | sprintf( |
|
646 | __('The "%1$s" registration step was not initialized properly.', 'event_espresso'), |
|
647 | $reg_step->name() |
|
648 | ), |
|
649 | __FILE__, |
|
650 | __FUNCTION__, |
|
651 | __LINE__ |
|
652 | ); |
|
653 | } |
|
654 | } |
@@ 6030-6039 (lines=10) @@ | ||
6027 | */ |
|
6028 | public function get_IDs($model_objects, $filter_out_empty_ids = false) |
|
6029 | { |
|
6030 | if (! $this->has_primary_key_field()) { |
|
6031 | if (WP_DEBUG) { |
|
6032 | EE_Error::add_error( |
|
6033 | __('Trying to get IDs from a model than has no primary key', 'event_espresso'), |
|
6034 | __FILE__, |
|
6035 | __FUNCTION__, |
|
6036 | __LINE__ |
|
6037 | ); |
|
6038 | } |
|
6039 | } |
|
6040 | $IDs = array(); |
|
6041 | foreach ($model_objects as $model_object) { |
|
6042 | $id = $model_object->ID(); |
|
@@ 6043-6058 (lines=16) @@ | ||
6040 | $IDs = array(); |
|
6041 | foreach ($model_objects as $model_object) { |
|
6042 | $id = $model_object->ID(); |
|
6043 | if (! $id) { |
|
6044 | if ($filter_out_empty_ids) { |
|
6045 | continue; |
|
6046 | } |
|
6047 | if (WP_DEBUG) { |
|
6048 | EE_Error::add_error( |
|
6049 | __( |
|
6050 | 'Called %1$s on a model object that has no ID and so probably hasn\'t been saved to the database', |
|
6051 | 'event_espresso' |
|
6052 | ), |
|
6053 | __FILE__, |
|
6054 | __FUNCTION__, |
|
6055 | __LINE__ |
|
6056 | ); |
|
6057 | } |
|
6058 | } |
|
6059 | $IDs[] = $id; |
|
6060 | } |
|
6061 | return $IDs; |