classes/item/ElementItem.php
protected function initElementObject()
    {
        $sModelClass = static::MODEL_CLASS;
        if (!empty($this->obElement) && !$this->obElement instanceof $sModelClass) {
            $this->obElement = null;
        }

        if (!empty($this->obElement) || empty($this->iElementID)) {
            return;
        }

        $this->setElementObject();
    }
protected function initElementObject()
    {
        $sModelClass = static::MODEL_CLASS;
        if (!empty($this->obElement) && !$this->obElement instanceof $sModelClass) {
            $this->obElement = null;
        }

        if (!empty($this->obElement) || empty($this->iElementID)) {
            return;
        }

        $this->setElementObject();
    }
protected function initElementObject ( ) { $ sModelClass = static :: MODEL_CLASS ; if ( ! empty ( $ this -> obElement ) && ! $ this -> obElement instanceof $ sModelClass ) { $ this -> obElement = null ; } if ( ! empty ( $ this -> obElement ) || empty ( $ this -> iElementID ) ) { return ; } $ this -> setElementObject ( ) ; }
Init element object
Init element object