forked from netcommons/NetCommons2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAction.class.php
More file actions
71 lines (66 loc) · 1.65 KB
/
Action.class.php
File metadata and controls
71 lines (66 loc) · 1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
/**
* iframeテーブル登録用クラス
*
* @package NetCommons Components
* @author Noriko Arai,Ryuji Masukawa
* @copyright 2006-2007 NetCommons Project
* @license http://www.netcommons.org/license.txt NetCommons License
* @project NetCommons Project, supported by National Institute of Informatics
* @access public
*/
class Iframe_Components_Action
{
/**
* @var DBオブジェクトを保持
*
* @access private
*/
var $_db = null;
/**
* @var DIコンテナを保持
*
* @access private
*/
var $_container = null;
/**
* コンストラクター
*
* @access public
*/
function Iframe_Components_Action()
{
$this->_container =& DIContainerFactory::getContainer();
$this->_db =& $this->_container->getComponent("DbObject");
}
/**
* iframeモジュールInsert
* @param array(block_id-url-frame_width-frame_height-scrollbar_show-scrollframe_show)
* @return boolean true or false
* @access public
*/
function insIframe($params=array())
{
$result = $this->_db->insertExecute("iframe", $params, true);
if ($result === false) {
return false;
}
return $result;
}
/**
* iframeモジュールUpdate
* @param array(block_id-url-frame_width-frame_height-scrollbar_show-scrollframe_show)
* @return boolean true or false
* @access public
*/
function updIframe($params=array())
{
$result = $this->_db->updateExecute("iframe", $params, "block_id", true);
if ($result === false) {
return false;
}
return true;
}
}
?>