src/Common/Model/BaseNestable.php
public function getAllNestedFlat(array $aData = [], $sSeparator = ' &rsaquo; ', $bIncludeDeleted = false)
    {
        $aAllNested = $this->getAllNested($aData, $bIncludeDeleted, 'children');
        $aFlattened = $this->flattenItems($aAllNested);

        foreach ($aFlattened as &$aLabels) {
            $aLabels = implode($sSeparator, $aLabels);
        }

        return $aFlattened;
    }
public function getAllNestedFlat(array $aData = [], $sSeparator = ' &rsaquo; ', $bIncludeDeleted = false)
    {
        $aAllNested = $this->getAllNested($aData, $bIncludeDeleted, 'children');
        $aFlattened = $this->flattenItems($aAllNested);

        foreach ($aFlattened as &$aLabels) {
            $aLabels = implode($sSeparator, $aLabels);
        }

        return $aFlattened;
    }
public function getAllNestedFlat ( array $ aData = [ ] , $ sSeparator = ' &rsaquo; ' , $ bIncludeDeleted = false ) { $ aAllNested = $ this -> getAllNested ( $ aData , $ bIncludeDeleted , 'children' ) ; $ aFlattened = $ this -> flattenItems ( $ aAllNested ) ; foreach ( $ aFlattened as & $ aLabels ) { $ aLabels = implode ( $ sSeparator , $ aLabels ) ; } return $ aFlattened ; }
Returns nested items, but as a flat array. The item's parent's labels will be prepended to the string
@param array $aData Customise the result set
@param string $sSeparator The separator to use between labels
@param bool $bIncludeDeleted Whether to include deleted results
@return array
Returns nested items but as a flat array . The item s parent s labels will be prepended to the string