예제 #1
0
 /**
  * Returns path of company logo. This function will not check if file really exists
  *
  * @access public
  * @param void
  * @return string
  */
 function getLogoPath()
 {
     return PublicFiles::getFilePath($this->getLogoFile());
 }
예제 #2
0
 /**
  * Return path to the picture file. This function just generates the path, does not check if file really exists
  *
  * @access public
  * @param void
  * @return string
  */
 function getPicturePath($size = 'small')
 {
     switch ($size) {
         case 'small':
             if (FileRepository::isInRepository($this->getPictureFileSmall())) {
                 return PublicFiles::getFilePath($this->getPictureFileSmall());
             }
         case 'medium':
             if (FileRepository::isInRepository($this->getPictureFileMedium())) {
                 return PublicFiles::getFilePath($this->getPictureFileMedium());
             }
         case 'large':
             if (FileRepository::isInRepository($this->getPictureFile())) {
                 return PublicFiles::getFilePath($this->getPictureFile());
             }
     }
 }
예제 #3
0
 /**
  * Return path to the avatar file. This function just generates the path, does not check if file really exists
  *
  * @access public
  * @param void
  * @return string
  */
 function getAvatarPath()
 {
     return PublicFiles::getFilePath($this->getAvatarFile());
 }
예제 #4
0
 /**
  * Return path to the picture file. This function just generates the path, does not check if file really exists
  *
  * @access public
  * @param void
  * @return string
  */
 function getPicturePath()
 {
     return PublicFiles::getFilePath($this->getPictureFile());
 }