Метод |
Описание |
|
__construct ( ) |
Do things like register/enqueue scripts and stylesheets |
|
display ( mixed $value = null, string $name = null, array $options = null, array $pod = null, integer $id = null ) : mixed | null | string |
Change the way the value of the field is displayed with Pods::get |
|
format ( mixed $value = null, string $name = null, array $options = null, array $pod = null, integer $id = null ) : string |
Reformat a number to the way the value of the field is displayed |
|
input ( string $name, mixed $value = null, array $options = null, array $pod = null, integer $id = null ) |
Customize output of the form field |
|
options ( ) : array |
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 | string |
Change the value or perform actions after validation but before saving to the DB |
|
prepare ( array $options = null ) : array |
Define the current field's preparation for sprintf |
|
regex ( mixed $value = null, string $name = null, array $options = null, string $pod = null, integer $id = null ) : boolean | string |
Build regex necessary for JS validation |
|
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 | null | string |
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 | mixed | void |
Validate a value before it's saved |
|