1 | <?php |
||
20 | class ElementHelper extends BaseElementHelper |
||
21 | { |
||
22 | |||
23 | /** |
||
24 | * The default scenario |
||
25 | */ |
||
26 | const DEFAULT_SCENARIO = self::SCENARIO_DEFAULT; |
||
27 | |||
28 | /** |
||
29 | * The scenario used by default |
||
30 | */ |
||
31 | const SCENARIO_DEFAULT = 'default'; |
||
32 | |||
33 | /** |
||
34 | * The scenario used to populate an element |
||
35 | */ |
||
36 | const SCENARIO_POPULATE = 'populate'; |
||
37 | |||
38 | /** |
||
39 | * The scenario used to insert an element |
||
40 | */ |
||
41 | const SCENARIO_INSERT = 'insert'; |
||
42 | |||
43 | /** |
||
44 | * The scenario used to update an element |
||
45 | */ |
||
46 | const SCENARIO_UPDATE = 'update'; |
||
47 | |||
48 | /** |
||
49 | * The scenario used to save an element |
||
50 | */ |
||
51 | const SCENARIO_SAVE = 'save'; |
||
52 | |||
53 | /** |
||
54 | * @param $config |
||
55 | * @param null $instanceOf |
||
56 | * @param string|null $toScenario |
||
57 | * @throws InvalidConfigException |
||
58 | * @return ElementInterface |
||
59 | */ |
||
60 | public static function create( |
||
74 | |||
75 | /** |
||
76 | * @param ElementInterface $element |
||
77 | * @param array $attributes |
||
78 | * @param string|null $toScenario |
||
79 | * @return ElementInterface |
||
80 | */ |
||
81 | public static function populate( |
||
99 | } |
||
100 |