Back to AssociationExtensionInterface class

Method getAssociationsForItem

public array
getAssociationsForItem
(mixed $id = 0, mixed $view = null)
Method to get the associations for a given item.
Parameters
  • int $id Id of the item
  • string $view Name of the view
Returns
  • array Array of associations for the item
Since
  • 4.0.0

Method getAssociationsForItem - Source code

/**
 * Method to get the associations for a given item.
 *
 * @param   integer  $id    Id of the item
 * @param   string   $view  Name of the view
 *
 * @return  array   Array of associations for the item
 *
 * @since  4.0.0
 */
public function getAssociationsForItem($id = 0, $view = null);