Exemple #1
0
 /**
  * @param \Onyx\Destiny\Objects\Hash $hash
  * @return bool
  */
 public static function saveImagesLocally($hash)
 {
     Images::saveImageLocally($hash, 'extra');
     // check for extraSecondary
     if ($hash->extraSecondary != null && !str_contains($hash->extraSecondary, 'missing_icon')) {
         Images::saveImageLocally($hash, 'extraSecondary');
     }
 }
Exemple #2
0
 /**
  * @param string $index Index for $this->attributes
  * @param string $hash hashCode for item
  * @throws \Onyx\Destiny\Helpers\String\HashNotLocatedException
  */
 private function setAttributePullImage($index, $hash)
 {
     if ($hash == null || $hash == "") {
         return;
     }
     Images::saveImagesLocally($this->translator->map($hash, false));
     $this->attributes[$index] = $hash;
 }