24 $member_srl = abs($member_srl);
27 if($this->pointList[$member_srl])
return true;
31 $cache_filename = sprintf(
'%s%d.cache.txt', $path, $member_srl);
32 if(file_exists($cache_filename))
34 if(!$this->pointList[$member_srl])
39 $args =
new stdClass();
40 $args->member_srl = $member_srl;
42 if(
$output->data->member_srl == $member_srl)
44 if(!$this->pointList[$member_srl])
46 $this->pointList[$member_srl] = (int)
$output->data->point;
58 function getPoint($member_srl, $from_db =
false)
60 $member_srl = abs($member_srl);
63 if(!$from_db && $this->pointList[$member_srl])
return $this->pointList[$member_srl];
67 $cache_filename = sprintf(
'%s%d.cache.txt', $path, $member_srl);
69 if(!$from_db && file_exists($cache_filename))
73 $args =
new stdClass();
74 $args->member_srl = $member_srl;
77 if(isset(
$output->data->member_srl))
79 $point = (int)
$output->data->point;
80 $this->pointList[$member_srl] = $point;
93 $level_count = count($level_step);
94 for($level=0;$level<=$level_count;$level++)
if($point < $level_step[$level])
break;
105 $member_srls = array_unique(explode(
',', $member_srls));
106 if(!count($member_srls))
133 foreach($member_srls as $v)
138 $obj->member_srl = $v;
142 $this->
add(
'point_info',$info);
162 unset(
$args->is_admin,
$args->is_denied,
$args->selected_group_srl, $search_target);
165 if($search_target && $search_keyword)
167 switch($search_target)
170 if($search_keyword) $search_keyword = str_replace(
' ',
'%',$search_keyword);
171 $args->s_user_id = $search_keyword;
174 if($search_keyword) $search_keyword = str_replace(
' ',
'%',$search_keyword);
175 $args->s_user_name = $search_keyword;
178 if($search_keyword) $search_keyword = str_replace(
' ',
'%',$search_keyword);
179 $args->s_nick_name = $search_keyword;
181 case 'email_address' :
182 if($search_keyword) $search_keyword = str_replace(
' ',
'%',$search_keyword);
183 $args->s_email_address = $search_keyword;
186 $args->s_regdate = $search_keyword;
189 $args->s_last_login = $search_keyword;
192 $args->s_extra_vars = $search_keyword;
197 if(
$args->selected_group_srl)
199 $query_id =
'point.getMemberListWithinGroup';
203 $query_id =
'point.getMemberList';
213 foreach(
$output->data as $key => $val)
215 $output->data[$key]->level = $this->
getLevel($val->point, $config->level_step);
getMemberList($args=null, $columnList=array())
Get a list of points members list.
getNumberingPath($no, $size=3)
getLevel($point, $level_step)
Get the level.
The model class fo the point module.
writeFile($filename, $buff, $mode="w")
The parent class of the point module.
getPoint($member_srl, $from_db=false)
Get the points.
executeQuery($query_id, $args=NULL, $arg_columns=NULL)
isExistsPoint($member_srl)
Check if there is points information.