public function initInternArray($array = [], $internCall = false)
    {
        if (is_array($array) && count($array) > 0) {
            $this
                ->setInternArray($array)
                ->setInternArrayOffset(0)
                ->setInternArrayIsArray(true);
        } elseif (!$internCall && property_exists($this, $this->getAttributeName())) {
            $this->initInternArray($this->_get($this->getAttributeName()), true);
        }
        return $this;
    }
public function initInternArray($array = [], $internCall = false)
    {
        if (is_array($array) && count($array) > 0) {
            $this
                ->setInternArray($array)
                ->setInternArrayOffset(0)
                ->setInternArrayIsArray(true);
        } elseif (!$internCall && property_exists($this, $this->getAttributeName())) {
            $this->initInternArray($this->_get($this->getAttributeName()), true);
        }
        return $this;
    }
public function initInternArray ( $ array = [ ] , $ internCall = false ) { if ( is_array ( $ array ) && count ( $ array ) > 0 ) { $ this -> setInternArray ( $ array ) -> setInternArrayOffset ( 0 ) -> setInternArrayIsArray ( true ) ; } elseif ( ! $ internCall && property_exists ( $ this , $ this -> getAttributeName ( ) ) ) { $ this -> initInternArray ( $ this -> _get ( $ this -> getAttributeName ( ) ) , true ) ; } return $ this ; }
Method initiating internArray
@uses AbstractStructArrayBase::setInternArray()
@uses AbstractStructArrayBase::setInternArrayOffset()
@uses AbstractStructArrayBase::setInternArrayIsArray()
@uses AbstractStructArrayBase::getAttributeName()
@uses AbstractStructArrayBase::initInternArray()
@uses AbstractStructArrayBase::__toString()
@param array $array the array to iterate trough
@param bool $internCall indicates that methods is calling itself
@return AbstractStructArrayBase
Method initiating internArray