supportedTypes example

return FALSE;
      }
    }
    return $success;
  }

  /** * {@inheritdoc} */
  public function parseFile() {
    $data = @getimagesize($this->getSource());
    if ($data && in_array($data[2]static::supportedTypes())) {
      $this->setType($data[2]);
      $this->preLoadInfo = $data;
      return TRUE;
    }
    return FALSE;
  }

  /** * Gets the color set for transparency in GIF images. * * @return string|null * A color string like '#rrggbb', or NULL if not set or not relevant. */

  public function isValid() {
    return isset($this->type);
  }

  /** * {@inheritdoc} */
  public function parseFile() {
    $this->logCall('parseFile', func_get_args());
    $data = @getimagesize($this->getSource());
    if ($data && in_array($data[2]static::supportedTypes())) {
      $this->setType($data[2]);
      $this->width = $data[0];
      $this->height = $data[1];
      return TRUE;
    }
    return FALSE;
  }

  /** * {@inheritdoc} */
  
Home | Imprint | This part of the site doesn't use cookies.