@@ -60,23 +60,20 @@ public function addStatisticRaw($typeCode,$typeDesc,$categoryCode,$categoryDesc,
60
60
{
61
61
# Create the new statistic object
62
62
$ stat_obj = (object ) [
63
- 'statistic_category ' => [ (object ) [
63
+ 'statistic_category ' => (object ) [
64
64
'value ' => $ categoryCode ,
65
65
'desc ' => $ categoryDesc ,
66
- ]] ,
67
- 'category_type ' => [ (object ) [
66
+ ],
67
+ 'category_type ' => (object ) [
68
68
'value ' => $ typeCode ,
69
69
'desc ' => $ typeDesc ,
70
- ]] ,
70
+ ],
71
71
'statistic_note ' => $ note ,
72
72
'segment_type ' => $ segment_type ,
73
73
];
74
74
75
-
76
- //* TODO HERE *//
77
-
78
75
# Add the object to the user
79
- $ this ->data -> user_statistic [] = $ stat_obj ;
76
+ $ this ->data [] = $ stat_obj ;
80
77
81
78
/* Not Sure this is quite right or needed. */
82
79
return Statistic::make ($ this ->client ,$ stat_obj );
@@ -107,6 +104,20 @@ public function addStatistic($typeCode,$categoryCode)
107
104
/* Seems to be an issue with # of categoryCodes that can be pulled at once (max:10) */
108
105
/* But performing via curl returns all (???). */
109
106
/* May need to open a case to allow resumption on pulling code tables regarding 'limit' and 'offset'? */
107
+
108
+ #
109
+ # These functions for CodeTables need defined.
110
+ #
111
+ #$typeDesc = $this->conf->CodeTables->getDesc('UserStatisticalTypes',$typeCode);
112
+ #$categoryDesc = $this->conf->CodeTables->getDesc('UserStatCagegories',$categoryCode);
113
+ #
114
+ # These are temporary.
115
+ $ segmentType = 'External ' ; # Just for now.
116
+ $ note = '' ; # Just for now.
117
+
118
+ $ ret = $ this ->addStatisticRaw ($ typeCode ,$ typeDesc ,$ categoryCode ,$ categoryDesc ,$ note ,$ segmentType );
119
+
120
+ return ($ ret );
110
121
}
111
122
112
123
/**
0 commit comments