获取器

命名规范为:

getFieldNameAttr

例如,我们需要对状态值进行转换,可以使用:

<?php
class User extends Model
{
public function getStatusAttr($value)
{
$status = [-1=>'删除',0=>'禁用',1=>'正常',2=>'待审核'];
return $status[$value];
}
}
$user = User::get(1);
echo $user->status; // 例如输出“正常”

如果你定义了获取器的情况下,希望获取数据表中的原始数据,可以使用:

$user = User::get(1);
// 通过获取器获取字段
echo $user->status;
// 获取原始字段数据
echo $user->getData('status');
// 获取全部原始数据
dump($user->getData());

模型设置

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAA4kAAAGxCAMAAAD4RgOOAAAAAXNSR0IArs4c6QAAAR1QTFRFJCQmKCgoGxsb+zg4NjY8LCwsaplUHh4eODg4MjIyFBQUbGxsz5F4mZmZUlJTzMzMcnJyrq6ufHx8jY2NoXTEurq6WFhZhYWFRUVFQEBCn5+gqKiovr6+gYGBYV9lwsXFm93+kWy3s7OzMB4eZ2okHiCD3d2q1tjXkpKST0NbmdPTWJ3UQa33Oj0eNDM0RJ3JIWTJYJQ+c1WJlLupL21NolQfHh5d0daVcNX8gx4eJobatoQiemCkHkOoXh4eTCIeIB8i2ahIV5WfYHyEw4SxHh42RH1Y2cJ9V04fjaSDe4keHh6nq86oH2F4HoiL9vb2wqplxtivQjdMHmCfHk4/hr3QHoOxLyszHjY0wn1tu1pWXKKxeomnPDw8ZonFcO9uHwAAIABJREFUeNrtnQlD28b29pV7sUT/smxLxju2wYEEA6EUQpoQ0qwt2dvSpmnvvXm//8d455yZ0S5hY4wXntNa1mgX0c/nzJmZR8YBDAabvRn4E8BgIBEGg4FEGAwkwmAwkAiDzSeJxpJZYTY2s/NaszEDdn0GEkEiSASJIBEkwkAiSASJIBEkgkQYSASJIBEkgkSQCAOJIBEkgkSQCBJhIBEkgkSQCBJBIgwkgkSQuMgk1tsHRqMBEkEiSJyxT7Sdllsjs+udVoPnap2DRueAVok9O7Wa26GFgzrP18XWbmseSVwZ9oaF71a+u8JD3vAmIPHS83qZR+9V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C5K2E0XZxidyvrhqrcKEmGLkbFJartp2JhErhG6XYFh16U1vIAQLAvr22ESAz51cYYkFiqrobwNSITNPYlJbTfp0aRum/aJIjR1u4b2ieT9nHCKRu8SJlHKps4sY0Ph6SUuESTC5o7EqLablO+WalGynmjYtYHk0pX1RCn8zSS2al29iyZx2gLg+SSKaiLXE41KvksEibB5IjGh7VZab6t3XnBkWuYsaKvmStdHL82g3Gm3TBtpEtUuvk9sT/elGOhjA1tCEhOthev2uFjEdrnCEUAiDCSCRBgMJIJEGEjEWAwYDCSCRBhIBIkgEQYSQSIMJIJEkAgDiSARBhJvC4lKPcOy7Eaj0QSJMJA4W/UMGrcP9QwYSJy1egYNE84dtA8SYXNE4hjabr5N/e2I16Ke0Ww084djgETY/JCYou3mOgtOolbPKHgNqGfAFoPENG23hSfRkvXDZne14FUMkAhbABJTtN1qpOZW6pfLDo0aLvd3XB6l6ERk33ZoAOJNaLhdXT3DqNTJLTZBImwhSExou7FP7HYNu2+TuiINwNc6poHsG33sm9Bwu7p6BtcRm9AAhy0EiSnabjo6JRUpcnhdl/Uz4rJvPFTfnlmkml9N5HqiqCbmivGDRNgcZWyS2m5MIolk9EnPjUk0HBmEhmXfDLd7Expu6GMDux0kJrXdiEQKS7VPlKEpT8Oyb5rEKWu4gUTYbSIxrO1GJBJjXBGU9UTyjLV6oOGmSbwBDTeQCLslJCa03QSC/VK3XF6v2fz2ix1S2Zcvx4jIvrndm9BwA4mw20LiZeY4s9SrAYkwkKg8pA0SYbCJ7f8D38HA5+F39xUAAAAASUVORK5CYII=" alt="" />

也可以再控制器里设置(withAttr方法可以多次调用,对多个字段定义获取器。)

Db::name('user')->withAttr('name', function($value, $data) {
return strtolower($value);
})->select();

修改器

和获取器相反,修改器的主要作用是对模型设置的数据对象值进行处理。

修改器方法的命名规范为:setFieldNameAttr

应用场景:

修改器的使用场景和读取器类似:

  • 时间日期字段的转换写入;
  • 集合或枚举类型的写入;
  • 数字状态字段的写入;
  • 某个字段涉及其它字段的条件或者组合写入
//模型设置
<?php
class User extends Model
{
public function setNameAttr($value)
{
return strtolower($value);
}
}

保存name到数据库中的时候会转为小写。

方式2-除了赋值的方式可以触发修改器外,还可以用下面的方法批量触发修改器:

$user = new User();
$data['name'] = 'THINKPHP';
$data['email'] = 'thinkphp@qq.com';
$user->data($data, true);
$user->save();
echo $user->name; // thinkphp

如果为nameemail字段都定义了修改器的话,都会进行处理。

方法3-使用save方法触发,例如:

$user = new User();
$data['name'] = 'THINKPHP';
$data['email'] = 'thinkphp@qq.com';
$user->save($data);
echo $user->name; // thinkphp

注意:修改器方法仅对模型的写入方法有效,调用数据库的写入方法写入无效,例如下面的方式修改器无效。

$user = new User();
$data['name'] = 'THINKPHP';
$data['email'] = 'thinkphp@qq.com';
$user->insert($data);

php手记之05-tp5获取器与修改器的更多相关文章

  1. Thinkphp5.0 的使用模型Model的获取器与修改器

    Thinkphp5.0 的使用模型Model的获取器.修改器.软删除 一.获取器 在model中使用 get+字段名+Attr,可以修改字段的返回值. 数据库中性别保存为,0未知.1男.2女,查询时返 ...

  2. thinkphp模型中的获取器和修改器(根据字段名自动调用模型中的方法)

    thinkphp模型中的获取器和修改器(根据字段名自动调用模型中的方法) 一.总结 记得看下面 1.获取器的作用是在获取数据的字段值后自动进行处理 2.修改器的作用是可以在数据赋值的时候自动进行转换处 ...

  3. UV纹理+修改器:VertexWeightEdit+修改器:Mask遮罩

    UV纹理+修改器: VertexWeightEdit+修改器: Mask遮罩 基本流程, 如下图,准备地图一份, 黑白色即可. 纹理使用颜色绘制权重. 白色为1, 黑色为0. 新增球体, 细分多次, ...

  4. tp5 中 model 的修改器

    修改器可以在数据赋值的时候自动进行转换处理 class User extends Model { public function setNameAttr($value){ return strtolo ...

  5. laravel 访问器 和修改器的使用

    对于访问器我是这样定义的,就是将数据库中的数据被访问时可以变成我们想要的数据类型(例如:数据库中的时间字段是int类型,要将她变成data(Y-m-d H:i:s),格式类型) 参看博客 https: ...

  6. thinkphp读取器和修改器

    读取器 如果在模型中,自定义了方法,那么读取器会读取模型中自定义的方法,否则会调用默认的方法. 写入器

  7. mongodb的修改器

    在mongodb中通常文档只会有一部分要更新,利用原子的更新修改器,可以做到只更新文档的一部分键值,而且更新极为高效,更新修改器是种特殊的键,用来指定复杂的更新操作,比如调整.增加.或者删除键,还可以 ...

  8. [小北De编程手记] : Lesson 05 - Selenium For C# 之 API 下

    上一篇,我们介绍了一些Selenium WebDriver相关的API,下面我们就接着上一篇继续介绍Selenium常用的API,这一篇的内容主要涉及到以下话题: Selenium API:复杂事件处 ...

  9. 实训任务05 MapReduce获取成绩表的最高分记录

    实训任务05  MapReduce获取成绩表的最高分记录 实训1:统计用户纺问次数 任务描述: 统计用户在2016年度每个自然日的总访问次数.原始数据文件中提供了用户名称与访问日期.这个任务就是要获取 ...

随机推荐

  1. C++中头文件与源文件的作用详解

    一.C++ 编译模式 通常,在一个 C++ 程序中,只包含两类文件―― .cpp 文件和 .h 文件.其中,.cpp 文件被称作 C++ 源文件,里面放的都是 C++ 的源代码:而 .h 文件则被称作 ...

  2. Nginx的proxy buffer参数总结

    1. proxy_buffering 语法:proxy_buffering on|off 默认值:proxy_buffering on 上下文:http,server,location 作用:该指令开 ...

  3. 使用tmux管理终端的窗口

    教程参考这里: http://louiszhai.github.io/2017/09/30/tmux/

  4. wireshark分析https数据包解密前后的特点

    wireshark分析https数据包解密前后的特点 (一)https解密前 1.协议种类:2种(1)TCP(第四层,传输层)(2)SSL/TLS(第五层,应用层,加解密)2.应用层数据所在数据包特点 ...

  5. APC (Asynchronous Procedure Call)

    系统创建新线程时,会同时创建与这个线程相关联的队列,即异步过程调用(APC)的队列. 一些异步操作可以通过加入APC来实现,比如我现在学习的IO请求/完成. BOOL ReadFileEx( HAND ...

  6. request-html 简单爬虫

    import asyncio from requests_html import HTMLSession url = 'http://www.xiaohuar.com/hua/' session = ...

  7. 如何顺利完成Kubernetes源码编译?

    为什么要编译源码 ? Kubernetes是一个非常棒的容器集群管理平台.通常情况下,我们并不需要修改K8S代码即可直接使用.但如果,我们在环境中发现了某个问题/缺陷,或按照特定业务需求需要修改K8S ...

  8. python高级特性-迭代器

    凡是可作用于for循环的对象都是Iterable类型: 凡是可作用于next()函数的对象都是Iterator类型,它们表示一个惰性计算的序列: 集合数据类型如list.dict.str等是Itera ...

  9. java架构

    技术架构是以Spring Framework为核心容器,Spring MVC为模型视图控制器,MyBatis作为数据访问层, Apache Shiro为权限授权层,使用Ehcahe对常用数据进行缓存. ...

  10. CH6303 天天爱跑步

    6303 天天爱跑步 0x60「图论」例题 描述 小C同学认为跑步非常有趣,于是决定制作一款叫作<天天爱跑步>的游戏.<天天爱跑步>是一个养成类游戏,需要玩家每天按时上线,完成 ...