Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
design_area_colourise_image_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  $this->vars = Array(
43  'image' => Array(
44  'added' => '0.0.1',
45  'type' => 'text',
46  'default' => '',
47  'description' => 'filename of the Associated File image that we are to colourise',
48  ),
49  'colours' => Array(
50  'added' => '0.0.1',
51  'type' => 'serialise',
52  'default' => Array(),
53  'description' => 'Associative Array of colours that are going to be used in the converison process',
54  ),
55  'filename_only' => Array(
56  'added' => '0.0.1',
57  'type' => 'boolean',
58  'default' => 0,
59  'description' => 'whether to print just the filename or the full img tag',
60  'parameters' => Array(
61  'allow_empty' => FALSE,
62  ),
63  ),
64  'type' => Array(
65  'added' => '0.0.1',
66  'type' => 'selection',
67  'default' => 'greyscale',
68  'parameters' => Array(
69  'options' => Array(
70  'greyscale' => 'Greyscale',
71  'multiple_colours' => 'Multiple Colours',
72  ),
73  'allow_empty' => FALSE,
74  'multiple' => FALSE,
75  ),
76  ),
77  'tolerance' => Array(
78  'added' => '0.0.1',
79  'type' => 'float',
80  'default' => 0.2,
81  ),
82  'extra' => Array(
83  'added' => '0.0.1',
84  'type' => 'text',
85  'default' => '',
86  'description' => 'Any extra HTML that you want to end up in the img tag',
87  ),
88  );
89 
90  }//end constructor
91 
92 
93 }//end class
94 ?>