本文整理汇总了PHP中Sites::row2Object方法的典型用法代码示例。如果您正苦于以下问题:PHP Sites::row2Object方法的具体用法?PHP Sites::row2Object怎么用?PHP Sites::row2Object使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Sites
的用法示例。
在下文中一共展示了Sites::row2Object方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: elseif
$error = "Deep password check requires a valid path to unrar binary";
} elseif ($ret == Sites::ERR_BADTMPUNRARPATH) {
$error = "The temp unrar path is not a valid directory";
} elseif ($ret == Sites::ERR_BADLAMEPATH) {
$error = "The lame path is not a valid directory";
} elseif ($ret == Sites::ERR_SABCOMPLETEPATH) {
$error = "The sab complete path is not a valid directory";
}
}
if ($error == "") {
$site = $ret;
$returnid = $site->id;
header("Location:" . WWW_TOP . "/site-edit.php?id=" . $returnid);
} else {
$page->smarty->assign('error', $error);
$site = $sites->row2Object($_POST);
$page->smarty->assign('fsite', $site);
}
break;
case 'view':
default:
$page->title = "Site Edit";
$site = $sites->get(true);
$page->smarty->assign('fsite', $site);
break;
}
$page->smarty->assign('yesno_ids', array(1, 0));
$page->smarty->assign('yesno_names', array('Yes', 'No'));
$page->smarty->assign('passwd_ids', array(2, 1, 0));
$page->smarty->assign('passwd_names', array('Deep (requires unrar)', 'Shallow', 'None'));
$page->smarty->assign('sabintegrationtype_ids', array(SABnzbd::INTEGRATION_TYPE_USER, SABnzbd::INTEGRATION_TYPE_SITEWIDE, SABnzbd::INTEGRATION_TYPE_NONE));