Esempio n. 1
0
 /**
  * Returns any section associations this section has with other sections
  * linked using fields. Has an optional parameter, `$respect_visibility` that
  * will only return associations that are deemed visible by a field that
  * created the association. eg. An articles section may link to the authors
  * section, but the field that links these sections has hidden this association
  * so an Articles column will not appear on the Author's Publish Index
  *
  * @param boolean $respect_visibility
  *  Whether to return all the section associations regardless of if they
  *  are deemed visible or not. Defaults to false, which will return all
  *  associations.
  * @return array
  */
 public function fetchAssociatedSections($respect_visibility = false)
 {
     return SectionManager::fetchAssociatedSections($this->get('id'), $respect_visibility);
 }