随笔分类 -  设计模式

摘要:1 Gettype() == 0){ 39 return false; 40 } 41 if(!(array_key_exists($goods_id,$this->item))){ 42 return false; 43 }else{ 44 return $this->item[$... 阅读全文
posted @ 2014-05-14 17:22 jami918 阅读(311) 评论(0) 推荐(0)
摘要:1 duration = $duration;10 $this->costtype = $costtype;11 }12 13 function cost(){14 switch ($this->costtype){15 ... 阅读全文
posted @ 2014-05-07 18:26 jami918 阅读(213) 评论(0) 推荐(0)