1 | <?php |
||
56 | class FieldDefinitionObject extends EzPlatformObject |
||
57 | { |
||
58 | /** |
||
59 | * @var ContentTypeObject |
||
60 | */ |
||
61 | private $contentType; |
||
62 | |||
63 | /** |
||
64 | * @var FieldDefinitionMapper |
||
65 | */ |
||
66 | private $mapper; |
||
67 | |||
68 | /** |
||
69 | * {@inheritdoc} |
||
70 | */ |
||
71 | 43 | public function __construct($identifier, ContentTypeObject $parent, array $data = array()) |
|
78 | |||
79 | /** |
||
80 | * Converts a string to one or more words |
||
81 | * 'name' -> 'Name' |
||
82 | * 'short_description' -> 'Short Description'. |
||
83 | * |
||
84 | * @param string $string |
||
85 | * |
||
86 | * @return string |
||
87 | */ |
||
88 | 6 | protected function identifierToReadable($string) |
|
92 | |||
93 | /** |
||
94 | * @return FieldDefinitionMapper |
||
95 | */ |
||
96 | 37 | public function getMapper() |
|
104 | |||
105 | 43 | private function setMissingDefaults() |
|
117 | |||
118 | /** |
||
119 | * Allows direct control in FieldDefintiionCreateStruct and FieldDefintiionUpdateStruct. |
||
120 | * |
||
121 | * @param \Closure $callback |
||
122 | */ |
||
123 | 1 | public function setStructCallback(\Closure $callback) |
|
127 | } |
||
128 |