Ejemplo n.º 1
0
 /**
  * Get variation or image key.
  *
  * @param bool $parent
  *
  * @return string
  */
 public function getKey($parent = false)
 {
     if ($parent) {
         return parent::getKey();
     } else {
         // TODO: add a configurable naming scheme here
         return parent::getKey() . '~' . $this;
     }
 }
Ejemplo n.º 2
0
 /**
  * Check with the filesystem if the image exists and update the image key cache.
  *
  * @param Image $image
  *
  * @return bool
  */
 protected function validateTag(Image $image)
 {
     $exists = $this->filesystem->has($image->getKey());
     $this->setImageExists($image, $exists);
     return $exists;
 }