摘要: property = $value;`. * * 魔术方法,实现 setter * * @param string $name the property name or the event name * @param mixed $value the property value * @throws UnknownPropertyExc... 阅读全文
posted @ 2016-05-01 18:26 TTKKK 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 阅读object.php 阅读全文
posted @ 2016-04-27 22:18 TTKKK 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 继续阅读model.php 阅读全文
posted @ 2016-04-26 22:48 TTKKK 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 系统的看一下model.php 阅读全文
posted @ 2016-04-25 23:30 TTKKK 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 继续来看Event.php 阅读全文
posted @ 2016-04-24 18:16 TTKKK 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 下面我们来看一下Event.php 阅读全文
posted @ 2016-04-24 17:13 TTKKK 阅读(140) 评论(0) 推荐(0) 编辑
摘要: property)`. * * 重写 Object 中的 isset 方法,添加对 behaviors 的处理,循环 behaviors,如果其中有相应的属性,就认为有 * * @param string $name the property name or the event name * @return boolean whether the... 阅读全文
posted @ 2016-04-24 16:37 TTKKK 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 接下来我们来了解Component.php 目录为:vendor/yiisoft/yii2/base/Component.php 为了对Component.php有个初级的认识,我先截取一段yii2.0手册上的注释。 组件(Component)与对象(Object) Yii 2.0 把 1.1 中的 阅读全文
posted @ 2016-04-21 23:49 TTKKK 阅读(227) 评论(0) 推荐(0) 编辑
摘要: 今天我们来看一下Model.php 目录:base/Model.php 阅读全文
posted @ 2016-04-20 23:00 TTKKK 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 今天我们继续来挖Application.php 下面我们来看一下ArrayableTrait.php 阅读全文
posted @ 2016-04-19 21:45 TTKKK 阅读(161) 评论(0) 推荐(0) 编辑