美文网首页
yii\base\BaseObject

yii\base\BaseObject

作者: duandaoke | 来源:发表于2018-02-21 22:21 被阅读0次

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

    • Besides the property feature, BaseObject also introduces an important object initialization life cycle. In particular,
    • creating an new instance of BaseObject or its derived class will involve the following life cycles sequentially:
    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.

    相关文章

      网友评论

          本文标题:yii\base\BaseObject

          本文链接:https://www.haomeiwen.com/subject/jvemtftx.html