Exemplo n.º 1
0
 /**
  * Return path to agent photo file, if file not exist, download it and save on disk.
  * @param string $customSize Custom size, written as width_height, ex. 400_300
  * @return string
  */
 public function GetPhotoImageSrc($customSize)
 {
     if ($this->GetPhotoFile() == "") {
         return "";
     }
     $api = new WebAPI();
     return $api->GetAgentDepartmentPhoto($this->GetId(), $customSize, 3, str_replace(array('-', ':', ' ', '.jpg'), array(''), $this->GetPhotoFile()));
 }