public function getAssociationContext()
    {
        $context = Symphony::Engine()->Page->getContext();
        $associations = $context['associations']['parent'];
        $field_association = array();
        $count = 0;

        if (!empty($associations)) {
            $associationsCount = count($associations);
            for ($i = 0; $i < $associationsCount; $i++) {
                if ($associations[$i]['child_section_field_id'] == $this->get('id')) {
                    if ($count === 0) {
                        $field_association = $associations[$i];
                        $count++;
                    } else {
                        $field_association['parent_section_id'] .= '|' . $associations[$i]['parent_section_id'];
                        $field_association['parent_section_field_id'] .= '|' . $associations[$i]['parent_section_field_id'];
                    }
                }
            }
        }

        return $field_association;
    }
public function getAssociationContext()
    {
        $context = Symphony::Engine()->Page->getContext();
        $associations = $context['associations']['parent'];
        $field_association = array();
        $count = 0;

        if (!empty($associations)) {
            $associationsCount = count($associations);
            for ($i = 0; $i < $associationsCount; $i++) {
                if ($associations[$i]['child_section_field_id'] == $this->get('id')) {
                    if ($count === 0) {
                        $field_association = $associations[$i];
                        $count++;
                    } else {
                        $field_association['parent_section_id'] .= '|' . $associations[$i]['parent_section_id'];
                        $field_association['parent_section_field_id'] .= '|' . $associations[$i]['parent_section_field_id'];
                    }
                }
            }
        }

        return $field_association;
    }
public function getAssociationContext ( ) { $ context = Symphony :: Engine ( ) -> Page -> getContext ( ) ; $ associations = $ context [ 'associations' ] [ 'parent' ] ; $ field_association = array ( ) ; $ count = 0 ; if ( ! empty ( $ associations ) ) { $ associationsCount = count ( $ associations ) ; for ( $ i = 0 ; $ i < $ associationsCount ; $ i ++ ) { if ( $ associations [ $ i ] [ 'child_section_field_id' ] == $ this -> get ( 'id' ) ) { if ( $ count === 0 ) { $ field_association = $ associations [ $ i ] ; $ count ++ ; } else { $ field_association [ 'parent_section_id' ] .= '|' . $ associations [ $ i ] [ 'parent_section_id' ] ; $ field_association [ 'parent_section_field_id' ] .= '|' . $ associations [ $ i ] [ 'parent_section_field_id' ] ; } } } } return $ field_association ; }
Get association data of the current field from the page context.

@since Symphony 2.5.0
@return array
Get association data of the current field from the page context .