lib/components/dataInterface/connectors/generic/DataSource.php
public function getForeignDataItem($key)
    {
        if (!isset($this->_foreignDataItems[$key])) {
            $this->createForeignDataItem(null, ['foreignPrimaryKey' => $key]);
        }
        if (isset($this->_foreignDataItems[$key])) {
            return $this->_foreignDataItems[$key];
        }

        return false;
    }
public function getForeignDataItem($key)
    {
        if (!isset($this->_foreignDataItems[$key])) {
            $this->createForeignDataItem(null, ['foreignPrimaryKey' => $key]);
        }
        if (isset($this->_foreignDataItems[$key])) {
            return $this->_foreignDataItems[$key];
        }

        return false;
    }
public function getForeignDataItem ( $ key ) { if ( ! isset ( $ this -> _foreignDataItems [ $ key ] ) ) { $ this -> createForeignDataItem ( null , [ 'foreignPrimaryKey' => $ key ] ) ; } if ( isset ( $ this -> _foreignDataItems [ $ key ] ) ) { return $ this -> _foreignDataItems [ $ key ] ; } return false ; }
Get foreign data item.

@param [[@doctodo param_type:key]] $key [[@doctodo param_description:key]]

@return [[@doctodo return_type:getForeignDataItem]] [[@doctodo return_description:getForeignDataItem]]
Get foreign data item .