1 | <?php |
||
9 | trait FieldTypeImplementationTrait |
||
10 | { |
||
11 | /** |
||
12 | * Gererate a slug based on name or other parameter |
||
13 | * @param $name |
||
14 | * @return string |
||
15 | */ |
||
16 | public function generateSlug($name) |
||
20 | |||
21 | /** |
||
22 | * Pre Assign Event to do anything the fieldType needs to. |
||
23 | * @param $command |
||
24 | */ |
||
25 | public function preAssignEvent($command) |
||
28 | |||
29 | /** |
||
30 | * By default wont do anything before saving |
||
31 | * @param $value |
||
32 | * @return mixed |
||
33 | */ |
||
34 | public function preSaveEvent($value) |
||
38 | |||
39 | /** |
||
40 | * By default it returns the raw value |
||
41 | * @return mixed |
||
42 | */ |
||
43 | public function presentFront() |
||
48 | } |
||
49 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.