Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
metadata_field_select_management.inc
1 <?php
18 require_once SQ_INCLUDE_PATH.'/asset_management.inc';
19 
31 {
32 
33 
39  {
40  Asset_Management::__construct($pm);
41 
42  // additional attrs., that were not defined in parent
43  $this->vars = Array(
44  'select_options' => Array(
45  'added' => '0.1',
46  'type' => 'serialise',
47  'default' => Array(),
48  'is_contextable' => TRUE,
49  ),
50  'multiple' => Array(
51  'added' => '0.2',
52  'type' => 'boolean',
53  'default' => FALSE,
54  'parameters' => Array('allow_empty' => FALSE,),
55  ),
56  'edit_params' => Array(
57  'added' => '0.2',
58  'type' => 'serialise',
59  'default' => Array(),
60  ),
61  'visible_part' => Array(
62  'added' => '0.3',
63  'type' => 'selection',
64  'default' => 'key',
65  'parameters' => Array(
66  'options' => Array(
67  'key' => 'Key',
68  'value' => 'Value',
69  ),
70  'multiple' => FALSE,
71  'allow_empty' => FALSE,
72  ),
73  'description' => 'This will determine which part of the options will be printed on the frontend (Key by default).',
74  ),
75  'allow_empty' => Array(
76  'added' => '0.3',
77  'type' => 'boolean',
78  'default' => TRUE,
79  'parameters' => Array('allow_empty' => FALSE,),
80  ),
81  );
82 
83  }//end constructor
84 
85 
92  public function _getFileList()
93  {
94  return Array('js/metadata_field_select.js');
95 
96  }//end _getFileList()
97 
98 
99 }//end class
100 
101 ?>