public function initBlameableEvents()
    {
        $this->on(static::$eventConfirmationChanged, [$this, "onConfirmationChanged"]);
        $this->on(static::$eventNewRecordCreated, [$this, "onInitConfirmation"]);
        $contentTypeAttribute = $this->contentTypeAttribute;
        if (is_string($contentTypeAttribute) && !empty($contentTypeAttribute) && !isset($this->$contentTypeAttribute)) {
            $this->on(static::$eventNewRecordCreated, [$this, "onInitContentType"]);
        }
        $descriptionAttribute = $this->descriptionAttribute;
        if (is_string($descriptionAttribute) && !empty($descriptionAttribute) && !isset($this->$descriptionAttribute)) {
            $this->on(static::$eventNewRecordCreated, [$this, 'onInitDescription']);
        }
        $this->on(static::EVENT_BEFORE_UPDATE, [$this, "onContentChanged"]);
        $this->initSelfBlameableEvents();
    }
public function initBlameableEvents()
    {
        $this->on(static::$eventConfirmationChanged, [$this, "onConfirmationChanged"]);
        $this->on(static::$eventNewRecordCreated, [$this, "onInitConfirmation"]);
        $contentTypeAttribute = $this->contentTypeAttribute;
        if (is_string($contentTypeAttribute) && !empty($contentTypeAttribute) && !isset($this->$contentTypeAttribute)) {
            $this->on(static::$eventNewRecordCreated, [$this, "onInitContentType"]);
        }
        $descriptionAttribute = $this->descriptionAttribute;
        if (is_string($descriptionAttribute) && !empty($descriptionAttribute) && !isset($this->$descriptionAttribute)) {
            $this->on(static::$eventNewRecordCreated, [$this, 'onInitDescription']);
        }
        $this->on(static::EVENT_BEFORE_UPDATE, [$this, "onContentChanged"]);
        $this->initSelfBlameableEvents();
    }
public function initBlameableEvents ( ) { $ this -> on ( static :: $ eventConfirmationChanged , [ $ this , "onConfirmationChanged" ] ) ; $ this -> on ( static :: $ eventNewRecordCreated , [ $ this , "onInitConfirmation" ] ) ; $ contentTypeAttribute = $ this -> contentTypeAttribute ; if ( is_string ( $ contentTypeAttribute ) && ! empty ( $ contentTypeAttribute ) && ! isset ( $ this -> $ contentTypeAttribute ) ) { $ this -> on ( static :: $ eventNewRecordCreated , [ $ this , "onInitContentType" ] ) ; } $ descriptionAttribute = $ this -> descriptionAttribute ; if ( is_string ( $ descriptionAttribute ) && ! empty ( $ descriptionAttribute ) && ! isset ( $ this -> $ descriptionAttribute ) ) { $ this -> on ( static :: $ eventNewRecordCreated , [ $ this , 'onInitDescription' ] ) ; } $ this -> on ( static :: EVENT_BEFORE_UPDATE , [ $ this , "onContentChanged" ] ) ; $ this -> initSelfBlameableEvents ( ) ; }
Attach events associated with blameable model.
Attach events associated with blameable model .