Example #1
0
 public function getThumbnailVersion()
 {
     // For image entry, the data file sync sub type is used as thumbnail
     if ($this->getType() == entryType::MEDIA_CLIP && $this->getMediaType() == self::ENTRY_MEDIA_TYPE_IMAGE) {
         return $this->getVersion();
     }
     $version = parent::getThumbnail();
     if ($version) {
         $c = strstr($version, '^') ? '^' : '&';
         $parts = explode($c, $version);
     } else {
         $parts = array('');
     }
     if (strlen($parts[0])) {
         $current_version = pathinfo($parts[0], PATHINFO_FILENAME);
     } else {
         $current_version = 0;
     }
     return $current_version;
 }
Example #2
0
 public function getThumbnailVersion()
 {
     $version = parent::getThumbnail();
     if ($version) {
         $c = strstr($version, '^') ? '^' : '&';
         $parts = explode($c, $version);
     } else {
         $parts = array('');
     }
     if (strlen($parts[0])) {
         $current_version = pathinfo($parts[0], PATHINFO_FILENAME);
     } else {
         $current_version = 0;
     }
     return $current_version;
 }