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:
<?php
/**
* Block Positions manager for the Impress Persistable Framework
*
* Longer description about this page
*
* @copyright http://www.impresscms.org/ The ImpressCMS Project
* @license LICENSE.txt
* @category ICMS
* @package View
* @subpackage Block
* @since 1.0
* @version SVN: $Id:Handler.php 19775 2010-07-11 18:54:25Z malanciault $
*/
defined('ICMS_ROOT_PATH') or die('ImpressCMS root path not defined');
/**
* icms_view_block_position_Handler
* @category ICMS
* @package View
* @subpackage Block
*
*/
class icms_view_block_position_Handler extends icms_ipf_Handler {
/**
* Constructor
*
* @param IcmsDatabase $db
*/
public function __construct(& $db) {
parent::__construct($db, 'blockposition', 'id', 'title', 'description', 'icms');
$this->className = 'icms_view_block_position_Object';
$this->table = $this->db->prefix('block_positions');
}
/**
* Inserts block position into the database
*
* @param object $obj the block position object
* @param bool $force force the insertion of the object into the database
* @param bool $checkObject Check the object before insertion
* @param bool $debug turn on debug mode?
*
* @return bool the result of the insert action
*/
public function insert(& $obj, $force = false, $checkObject = true, $debug = false) {
$obj->setVar('block_default', 0);
$obj->setVar('block_type', 'L');
return parent::insert($obj, $force, $checkObject, $debug);
}
}