$where =
[];
$updateData =
[];
$insertData =
[];
if ($this->_namespaceColumn !== null
) { $insertData[$this->_namespaceColumn
] =
$name;
$where[] =
$db->
quoteInto($this->_namespaceColumn . '=?',
$name);
} if ($this->_updatedColumn !== null
) { $updateData[$this->_updatedColumn
] =
new Zend_Date();
$insertData[$this->_updatedColumn
] =
new Zend_Date();
} if ($this->_createdColumn !== null
) { $insertData[$this->_createdColumn
] =
new Zend_Date();
} if (\
is_array($this->_sectionColumn
)) { foreach ($this->_sectionColumn
as $key =>
$sectionColumn) { if (isset($section[$key])) { $where[] =
$db->
quoteInto($sectionColumn . '=?',
$section[$key]);
$insertData[$sectionColumn] =
$section[$key];
}