SubDistrict::getDefaultImage - jcobban/Genealogy GitHub Wiki
$subdistrict->getDefaultImage($page)
This method calculates the most probable image URL on the Library and Archives of Canada web site for the specified page within this SubDistrict
. This depends upon the fact that for most enumeration divisions the image URLs are sequential, the first image in the set contains a header page supplied by the microfilm technician plus the first page of the division, and the subsequent images contain two pages. It has one parameter:
parameter | description |
---|---|
$page | The page number of the desired image. |
This value is validated that it lies between the minimum and maximum page numbers for the SubDistrict
and the case of the pre-Confederation censuses in which sometimes the page numbers increment by 2 each time so that the page number must be odd. If the page number is invalid the method returns an empty string.