本文整理汇总了PHP中rex_sql::getErrro方法的典型用法代码示例。如果您正苦于以下问题:PHP rex_sql::getErrro方法的具体用法?PHP rex_sql::getErrro怎么用?PHP rex_sql::getErrro使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类rex_sql
的用法示例。
在下文中一共展示了rex_sql::getErrro方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: elseif
* @package redaxo4
* @version $Id: module.modules.inc.php,v 1.1 2008/03/26 13:34:13 kills Exp $
*/
$OUT = TRUE;
$function = rex_request('function', 'string');
// ---------------------------- ACTIONSFUNKTIONEN FÜR MODULE
if (!empty($add_action)) {
$action = new rex_sql();
$action->setTable($REX['TABLE_PREFIX'] . 'module_action');
$action->setValue('module_id', $modul_id);
$action->setValue('action_id', $action_id);
if ($action->insert()) {
$message = $I18N->msg('action_taken');
$goon = 'ja';
} else {
$message = $action->getErrro();
}
} elseif (isset($function_action) and $function_action == 'delete') {
$action = new rex_sql();
$action->setTable($REX['TABLE_PREFIX'] . 'module_action');
$action->setWhere('id=' . $iaction_id . ' LIMIT 1');
$message = $action->delete($I18N->msg('action_deleted_from_modul'));
}
// ---------------------------- FUNKTIONEN FÜR MODULE
$module_in_use_message = '';
if ($function == 'delete') {
$del = new rex_sql();
$del->setQuery("SELECT " . $REX['TABLE_PREFIX'] . "article_slice.article_id, " . $REX['TABLE_PREFIX'] . "article_slice.clang, " . $REX['TABLE_PREFIX'] . "article_slice.ctype, " . $REX['TABLE_PREFIX'] . "module.name FROM " . $REX['TABLE_PREFIX'] . "article_slice\r\n LEFT JOIN " . $REX['TABLE_PREFIX'] . "module ON " . $REX['TABLE_PREFIX'] . "article_slice.modultyp_id=" . $REX['TABLE_PREFIX'] . "module.id\r\n WHERE " . $REX['TABLE_PREFIX'] . "article_slice.modultyp_id='{$modul_id}' GROUP BY " . $REX['TABLE_PREFIX'] . "article_slice.article_id");
if ($del->getRows() > 0) {
$modulname = htmlspecialchars($del->getValue($REX['TABLE_PREFIX'] . "module.name"));
for ($i = 0; $i < $del->getRows(); $i++) {
示例2: elseif
$goon = rex_request('goon', 'string');
$add_action = rex_request('add_action', 'string');
$info = '';
$warning = '';
$warning_block = '';
// ---------------------------- ACTIONSFUNKTIONEN FÜR MODULE
if ($add_action != "") {
$action = new rex_sql();
$action->setTable($REX['TABLE_PREFIX'] . 'module_action');
$action->setValue('module_id', $modul_id);
$action->setValue('action_id', $action_id);
if ($action->insert()) {
$info = $I18N->msg('action_taken');
$goon = '1';
} else {
$warning = $action->getErrro();
}
} elseif ($function_action == 'delete') {
$action = new rex_sql();
$action->setTable($REX['TABLE_PREFIX'] . 'module_action');
$action->setWhere('id=' . $iaction_id . ' LIMIT 1');
$info = $action->delete($I18N->msg('action_deleted_from_modul'));
}
// ---------------------------- FUNKTIONEN FÜR MODULE
if ($function == 'delete') {
$del = new rex_sql();
$del->setQuery("SELECT " . $REX['TABLE_PREFIX'] . "article_slice.article_id, " . $REX['TABLE_PREFIX'] . "article_slice.clang, " . $REX['TABLE_PREFIX'] . "article_slice.ctype, " . $REX['TABLE_PREFIX'] . "module.name FROM " . $REX['TABLE_PREFIX'] . "article_slice\r\n LEFT JOIN " . $REX['TABLE_PREFIX'] . "module ON " . $REX['TABLE_PREFIX'] . "article_slice.modultyp_id=" . $REX['TABLE_PREFIX'] . "module.id\r\n WHERE " . $REX['TABLE_PREFIX'] . "article_slice.modultyp_id='{$modul_id}' GROUP BY " . $REX['TABLE_PREFIX'] . "article_slice.article_id");
if ($del->getRows() > 0) {
$module_in_use_message = '';
$modulname = htmlspecialchars($del->getValue($REX['TABLE_PREFIX'] . "module.name"));
for ($i = 0; $i < $del->getRows(); $i++) {