1 | <?php |
||
14 | class TemplatePlanCombo extends Combo |
||
15 | { |
||
16 | /** {@inheritdoc} */ |
||
17 | public $type = 'plan/template'; |
||
18 | |||
19 | /** {@inheritdoc} */ |
||
20 | public $name = 'name'; |
||
21 | |||
22 | /** {@inheritdoc} */ |
||
23 | public $url = '/finance/plan/templates'; |
||
24 | |||
25 | /** {@inheritdoc} */ |
||
26 | public $_return = ['id']; |
||
27 | |||
28 | /** {@inheritdoc} */ |
||
29 | public $_rename = ['text' => 'name']; |
||
30 | |||
31 | public $_primaryFilter = 'name_ilike'; |
||
32 | |||
33 | /** |
||
34 | * @var int ID of plan that will be used in this templates suggestion |
||
35 | */ |
||
36 | public $plan_id; |
||
37 | /** |
||
38 | * @var string name of combo that contains target object |
||
39 | */ |
||
40 | public $object_input_type; |
||
41 | |||
42 | public function init() |
||
60 | |||
61 | public function getPluginOptions($options = []) |
||
89 | } |
||
90 |