Fractas\Seeder\UnsplashImageProvider
Simple embedding of Unsplash photos for SilverStripe Seeder Provider class.
Provider by https://source.unsplash.com/
Synopsis
class UnsplashImageProvider
extends Provider
{
- // members
- private $faker;
- private static string $type = 'random';
- private static integer $width = 800;
- private static integer $height = 600;
- public static string $shorthand = 'UnsplashImage';
- // methods
- public void __construct()
- public static array parseOptions()
- protected void generateField()
- protected mixed generateOne()
- protected array generateMany()
- private mixed createImage()
Hierarchy
Extends
- Seeder\Provider
Members
private
- $faker —
- $height
—
string
Height value of generated image - $type
—
string
Type of Unsplash image method (collection) - $width
—
string
Width value of generated image
public
- $shorthand — string