yii\base\BaseObject

2018-02-21  本文已影响0人  duandaoke

BaseObject is the base class that implements the property feature.
Property names are case-insensitive.

  1. the class constructor is invoked;
  2. object properties are initialized according to the given configuration;
  3. the init() method is invoked.
    In the above, both Step 2 and 3 occur at the end of the class constructor. It is recommended that you perform object initialization in the init() method because at that stage, the object configuration is already applied.
上一篇 下一篇

猜你喜欢

热点阅读