Example #1
0
 /**
  * Given a temporary file path on the server, this will save the file as a HeadShot for this Person
  * @param string $strTempFilePath
  * @param QDateTime $dttDateUploaded optional parameter -- will be set to Now() if null is passed in
  * @return HeadShot
  */
 public function SaveHeadShot($strTempFilePath, $dttDateUploaded = null)
 {
     $objHeadShot = new HeadShot();
     $objHeadShot->PersonId = $this->intId;
     $objHeadShot->DateUploaded = $dttDateUploaded ? $dttDateUploaded : QDateTime::Now();
     $objHeadShot->SaveHeadShot($strTempFilePath);
     return $objHeadShot;
 }