PHP 클래스 Faker\Provider\Image

상속: extends Faker\Provider\Base
파일 보기 프로젝트 열기: fzaninotto/faker 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$categories

공개 메소드들

메소드 설명
image ( $dir = null, $width = 640, $height = 480, $category = null, $fullPath = true, $randomize = true, $word = null ) Download a remote random image to disk and return its location
imageUrl ( $width = 640, $height = 480, $category = null, $randomize = true, $word = null, $gray = false ) Generate the URL that will return a random image

메소드 상세

image() 공개 정적인 메소드

Requires curl, or allow_url_fopen to be on in php.ini.
public static image ( $dir = null, $width = 640, $height = 480, $category = null, $fullPath = true, $randomize = true, $word = null )

imageUrl() 공개 정적인 메소드

Set randomize to false to remove the random GET parameter at the end of the url.
public static imageUrl ( $width = 640, $height = 480, $category = null, $randomize = true, $word = null, $gray = false )

프로퍼티 상세

$categories 보호되어 있는 정적으로 프로퍼티

protected static $categories