public final function getLinkedData()
    {
        if (!isset($this->_data)) {
            $masterLinkData = $this->chained->getLinkedData(array('ignoreVisible'=>true));
            if (!$masterLinkData) $this->_data = false;

            if ($masterLinkData) {
                if (is_null($this->_type)) throw new Kwf_Exception("_type may not be null");

                if ($this->_type == 'Trl') {
                    $linkComponent = Kwc_Chained_Trl_Component::getChainedByMaster($masterLinkData, $this);
                } else if ($this->_type == 'Cc') {
                    $linkComponent = Kwc_Chained_Cc_Component::getChainedByMaster($masterLinkData, $this);
                }
                if (!$linkComponent) {
                    $this->_data = false; //kann offline sein
                } else {
                    $this->_data = $linkComponent;
                }
            }
        }

        $chained = $this->chained;
        while (isset($chained->chained)) $chained = $chained->chained;
        $m = Kwc_Abstract::createModel($chained->componentClass);
        $result = $m->fetchColumnsByPrimaryId(array('anchor'), $chained->dbId);
        if ($result['anchor']) $this->_anchor = $result['anchor'];
        return $this->_data;
    }
public final function getLinkedData()
    {
        if (!isset($this->_data)) {
            $masterLinkData = $this->chained->getLinkedData(array('ignoreVisible'=>true));
            if (!$masterLinkData) $this->_data = false;

            if ($masterLinkData) {
                if (is_null($this->_type)) throw new Kwf_Exception("_type may not be null");

                if ($this->_type == 'Trl') {
                    $linkComponent = Kwc_Chained_Trl_Component::getChainedByMaster($masterLinkData, $this);
                } else if ($this->_type == 'Cc') {
                    $linkComponent = Kwc_Chained_Cc_Component::getChainedByMaster($masterLinkData, $this);
                }
                if (!$linkComponent) {
                    $this->_data = false; //kann offline sein
                } else {
                    $this->_data = $linkComponent;
                }
            }
        }

        $chained = $this->chained;
        while (isset($chained->chained)) $chained = $chained->chained;
        $m = Kwc_Abstract::createModel($chained->componentClass);
        $result = $m->fetchColumnsByPrimaryId(array('anchor'), $chained->dbId);
        if ($result['anchor']) $this->_anchor = $result['anchor'];
        return $this->_data;
    }
public final function getLinkedData ( ) { if ( ! isset ( $ this -> _data ) ) { $ masterLinkData = $ this -> chained -> getLinkedData ( array ( 'ignoreVisible' => true ) ) ; if ( ! $ masterLinkData ) $ this -> _data = false ; if ( $ masterLinkData ) { if ( is_null ( $ this -> _type ) ) throw new Kwf_Exception ( "_type may not be null" ) ; if ( $ this -> _type == 'Trl' ) { $ linkComponent = Kwc_Chained_Trl_Component :: getChainedByMaster ( $ masterLinkData , $ this ) ; } else if ( $ this -> _type == 'Cc' ) { $ linkComponent = Kwc_Chained_Cc_Component :: getChainedByMaster ( $ masterLinkData , $ this ) ; } if ( ! $ linkComponent ) { $ this -> _data = false ; //kann offline sein } else { $ this -> _data = $ linkComponent ; } } } $ chained = $ this -> chained ; while ( isset ( $ chained -> chained ) ) $ chained = $ chained -> chained ; $ m = Kwc_Abstract :: createModel ( $ chained -> componentClass ) ; $ result = $ m -> fetchColumnsByPrimaryId ( array ( 'anchor' ) , $ chained -> dbId ) ; if ( $ result [ 'anchor' ] ) $ this -> _anchor = $ result [ 'anchor' ] ; return $ this -> _data ; }
'cc' oder 'trl'
cc oder trl