$type
$type :
نوع یک فیلد برای نگاشی این فیلد به فیلدهای واقعی پایگاه داده استفاده میشود. برای نمونه کلاس Pluf_DB_Schema_MySQL در یک متغیر mapping این نگاشت را نگهداری کرده است.
This field will automatically slugify its content.
A slug is a short label for something, containing only letters, numbers, underscores or hyphens. They're generally used in URLs.
In your model, you can specify max_length in the widget_attrs
parameter. If max_length is not specified, Pluf will use a
default length of 50.
formField( $def, $form_field = 'Pluf_Form_Field_Slug')
Get the form field for this field.
We put this method at the field level as it allows us to easily create a new DB field and a new Form field and use them without the need to modify another place where the mapping would be performed.
| $def | ||
| $form_field |