PHP 클래스 PodsField_File, pods

상속: extends PodsField
파일 보기 프로젝트 열기: pods-framework/pods 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$group string Field Type Group
$label string Field Type Label
$type string Field Type Identifier

보호된 프로퍼티들

프로퍼티 타입 설명
$api PodsAPI API caching for fields that need it during validate/save

공개 메소드들

메소드 설명
__construct ( ) Do things like register/enqueue scripts and stylesheets
admin_ajax_upload ( ) Handle plupload AJAX
admin_init ( ) Add admin_init actions
display ( mixed $value = null, string $name = null, array $options = null, array $pod = null, integer $id = null ) : mixed | null Change the way the value of the field is displayed with Pods::get
images ( integer $id, mixed $value, string $name = null, array $options = null, array $pod = null, string $image_size = null ) : string Return image(s) markup
input ( string $name, mixed $value = null, array $options = null, array $pod = null, integer $id = null ) Customize output of the form field
markup ( array $attributes, integer $limit = 1, boolean $editable = true, integer $id = null, string $icon = null, string $name = null, $linked = false, $link = null ) : string Handle file row output for uploaders
options ( ) Add options and set defaults to
pre_save ( mixed $value, integer $id = null, string $name = null, array $options = null, array $fields = null, array $pod = null, object $params = null ) : mixed Change the value or perform actions after validation but before saving to the DB
regex ( mixed $value = null, string $name = null, array $options = null, string $pod = null, integer $id = null ) : boolean Build regex necessary for JS validation
save ( mixed $value, integer $id = null, string $name = null, array $options = null, array $fields = null, array $pod = null, object $params = null ) Save the value to the DB
schema ( array $options = null ) : array Define the current field's schema for DB table storage
ui ( integer $id, mixed $value, string $name = null, array $options = null, array $fields = null, array $pod = null ) : mixed | void Customize the Pods UI manage table column output
validate ( mixed $value, string $name = null, array $options = null, array $fields = null, array $pod = null, integer $id = null, null $params = null ) : boolean Validate a value before it's saved

메소드 상세

__construct() 공개 메소드

Do things like register/enqueue scripts and stylesheets
부터: 2.0
public __construct ( )

admin_ajax_upload() 공개 메소드

Handle plupload AJAX
부터: 2.3
public admin_ajax_upload ( )

admin_init() 공개 메소드

Add admin_init actions
부터: 2.3
public admin_init ( )

display() 공개 메소드

Change the way the value of the field is displayed with Pods::get
부터: 2.0
public display ( mixed $value = null, string $name = null, array $options = null, array $pod = null, integer $id = null ) : mixed | null
$value mixed
$name string
$options array
$pod array
$id integer
리턴 mixed | null

images() 공개 메소드

Return image(s) markup
부터: 2.3
public images ( integer $id, mixed $value, string $name = null, array $options = null, array $pod = null, string $image_size = null ) : string
$id integer
$value mixed
$name string
$options array
$pod array
$image_size string
리턴 string

input() 공개 메소드

Customize output of the form field
부터: 2.0
public input ( string $name, mixed $value = null, array $options = null, array $pod = null, integer $id = null )
$name string
$value mixed
$options array
$pod array
$id integer

markup() 공개 메소드

Handle file row output for uploaders
부터: 2.0
public markup ( array $attributes, integer $limit = 1, boolean $editable = true, integer $id = null, string $icon = null, string $name = null, $linked = false, $link = null ) : string
$attributes array
$limit integer
$editable boolean
$id integer
$icon string
$name string
리턴 string

options() 공개 메소드

Add options and set defaults to
부터: 2.0
public options ( )

pre_save() 공개 메소드

Change the value or perform actions after validation but before saving to the DB
부터: 2.0
public pre_save ( mixed $value, integer $id = null, string $name = null, array $options = null, array $fields = null, array $pod = null, object $params = null ) : mixed
$value mixed
$id integer
$name string
$options array
$fields array
$pod array
$params object
리턴 mixed

regex() 공개 메소드

Build regex necessary for JS validation
부터: 2.0
public regex ( mixed $value = null, string $name = null, array $options = null, string $pod = null, integer $id = null ) : boolean
$value mixed
$name string
$options array
$pod string
$id integer
리턴 boolean

save() 공개 메소드

Save the value to the DB
부터: 2.3
public save ( mixed $value, integer $id = null, string $name = null, array $options = null, array $fields = null, array $pod = null, object $params = null )
$value mixed
$id integer
$name string
$options array
$fields array
$pod array
$params object

schema() 공개 메소드

Define the current field's schema for DB table storage
부터: 2.0
public schema ( array $options = null ) : array
$options array
리턴 array

ui() 공개 메소드

Customize the Pods UI manage table column output
부터: 2.0
public ui ( integer $id, mixed $value, string $name = null, array $options = null, array $fields = null, array $pod = null ) : mixed | void
$id integer
$value mixed
$name string
$options array
$fields array
$pod array
리턴 mixed | void

validate() 공개 메소드

Validate a value before it's saved
부터: 2.0
public validate ( mixed $value, string $name = null, array $options = null, array $fields = null, array $pod = null, integer $id = null, null $params = null ) : boolean
$value mixed
$name string
$options array
$fields array
$pod array
$id integer
$params null
리턴 boolean

프로퍼티 상세

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

API caching for fields that need it during validate/save
부터: 2.3
protected static PodsAPI $api
리턴 PodsAPI

$group 공개적으로 정적으로 프로퍼티

Field Type Group
부터: 2.0
public static string $group
리턴 string

$label 공개적으로 정적으로 프로퍼티

Field Type Label
부터: 2.0
public static string $label
리턴 string

$type 공개적으로 정적으로 프로퍼티

Field Type Identifier
부터: 2.0
public static string $type
리턴 string