编写学期
This commit is contained in:
1 parent
0dbee995fc
commit
d81371b32c
8 files changed
+278
-137
No files matched your search
@@ -7,5 +7,27 @@ use app\common\model\Base;
|
||||
|
||||
class Xueqi extends Base
|
||||
{
|
||||
//
|
||||
// 开始时间修改器
|
||||
public function setBfdateAttr($value)
|
||||
{
|
||||
return strtotime($value);
|
||||
}
|
||||
|
||||
// 开始时间获取器
|
||||
public function getBfdateAttr($value)
|
||||
{
|
||||
return date('Y-m-d',$value);
|
||||
}
|
||||
|
||||
// 结束时间修改器
|
||||
public function setEnddateAttr($value)
|
||||
{
|
||||
return strtotime($value);
|
||||
}
|
||||
|
||||
// 结束时间获取器
|
||||
public function getEnddateAttr($value)
|
||||
{
|
||||
return date('Y-m-d',$value);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user