/** * @see SampleSecurityInterface::delete_organisation_complete() * Warning: This method is for organisation-unit-deletion only! * Outside organisation-unit-deletion is causes logical inconsistency! * @param integer $organisation_unit_id * @return bool */ public static function delete_organisation_complete($organisation_unit_id) { return SampleHasOrganisationUnit_Access::delete_by_organisation_unit_id($organisation_unit_id); }
/** * @see SampleInterface::list_organisation_unit_related_samples() * @param integer $organisation_unit_id * @return array */ public static function list_organisation_unit_related_samples($organisation_unit_id) { if (is_numeric($organisation_unit_id)) { $pk_array = SampleHasOrganisationUnit_Access::list_entries_by_organisation_unit_id($organisation_unit_id); if (is_array($pk_array) and count($pk_array) >= 1) { $return_array = array(); foreach ($pk_array as $key => $value) { $sample_has_organisation_unit_access = new SampleHasOrganisationUnit_Access($value); array_push($return_array, $sample_has_organisation_unit_access->get_sample_id()); } return $return_array; } else { return null; } } else { return null; } }