CMS
Version 3.9
image_upgrade_manager.inc
Go to the documentation of this file.
1
<?php
7
/**************************************************************
8
9
Copyright (c) 2010 Sonjara, Inc
10
11
Permission is hereby granted, free of charge, to any person
12
obtaining a copy of this software and associated documentation
13
files (the "Software"), to deal in the Software without
14
restriction, including without limitation the rights to use,
15
copy, modify, merge, publish, distribute, sublicense, and/or sell
16
copies of the Software, and to permit persons to whom the
17
Software is furnished to do so, subject to the following
18
conditions:
19
20
The above copyright notice and this permission notice shall be
21
included in all copies or substantial portions of the Software.
22
23
Except as contained in this notice, the name(s) of the above
24
copyright holders shall not be used in advertising or otherwise
25
to promote the sale, use or other dealings in this Software
26
without prior written authorization.
27
28
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
29
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
30
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
31
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
32
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
33
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
34
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
35
OTHER DEALINGS IN THE SOFTWARE.
36
37
*****************************************************************/
38
39
/*
40
* Manage component upgrades/updates to Image
41
* component.
42
*
43
* See parent class component/upgrade_manager.inc
44
* for instructions on usage.
45
*
46
* @author Janice Gallant for Sonjara, Inc.
47
*
48
* 6/2/2011
49
*
50
*/
51
52
Fakoli::using
(
"image"
,
"component"
);
53
54
class
ImageUpgradeManager
extends
UpgradeManager
55
{
56
var
$updateMap
= array(
57
"1.0"
=>
"sql:Initial Installation"
,
58
"1.1"
=>
"sql:Added hidden flag to image_gallery"
,
59
"1.2"
=>
"sql:Added related_resource field to image_record"
,
60
"1.3"
=>
"sql:Added image_link_mode and thumbnail_size parameters to image_gallery"
,
61
"1.4"
=>
"sql:Added fix_orientation flag to image_gallery"
,
62
"1.5"
=>
"sql:Added thumbnail_format field to image_gallery"
,
63
"1.6"
=>
"sql:Added randomize_filenames field to image_gallery"
,
64
"1.7"
=>
"sql:Increase size of title and ALT_tag fields in image table"
,
65
"1.8"
=>
"sql:Increase size of credits and caption fields in image table"
66
);
67
68
function
ImageUpgradeManager
()
69
{
70
$this->component_name =
"image"
;
71
72
// sets the sqlFile name according to default
73
parent::UpgradeManager();
74
}
75
}?>
Fakoli\using
static using()
Import the datamodels, views and manifest for the specified component(s).
Definition:
core.inc:116
ImageUpgradeManager
Definition:
image_upgrade_manager.inc:55
ImageUpgradeManager\$updateMap
$updateMap
Definition:
image_upgrade_manager.inc:56
ImageUpgradeManager\ImageUpgradeManager
ImageUpgradeManager()
Definition:
image_upgrade_manager.inc:68
UpgradeManager
Definition:
upgrade_manager.inc:192
code
cms.sonjara.com
cms
components
image
image_upgrade_manager.inc
Generated on Tue Mar 23 2021 15:36:13 for CMS by
1.9.1