public function get_all_month_time(){
$order_steplogs=M("order_steplogs")->db(1);//工单步骤表
$min_time1=$order_steplogs->where("time1 > 0 ")->Min("time1");//得到最小发单时间
$cur_month_time["end_time"]=$min_time1;
$now=time();
$month_time=array();
while ($cur_month_time["end_time"] < $now) {
$cur_month_time=$this->getmonth($cur_month_time["end_time"]+1);
$month_time[]=$cur_month_time;
}
return $month_time;//返回值
}
public function Summary(){
$month_time=$this->get_all_month_time();//调用当前类中的get_all_month_time()方法
}
//可以使用$this-> 来调用当前类中的某个方法
跨模块的调用可以用A方法
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。