本文整理汇总了PHP中erLhcoreClassInstance::performOperatorsLimit方法的典型用法代码示例。如果您正苦于以下问题:PHP erLhcoreClassInstance::performOperatorsLimit方法的具体用法?PHP erLhcoreClassInstance::performOperatorsLimit怎么用?PHP erLhcoreClassInstance::performOperatorsLimit使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类erLhcoreClassInstance
的用法示例。
在下文中一共展示了erLhcoreClassInstance::performOperatorsLimit方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
if (isset($_POST['UpdateUsers'])) {
$definition = array('max_operators' => new ezcInputFormDefinitionElement(ezcInputFormDefinitionElement::OPTIONAL, 'int'), 'one_per_account' => new ezcInputFormDefinitionElement(ezcInputFormDefinitionElement::OPTIONAL, 'boolean'));
$form = new ezcInputForm(INPUT_POST, $definition);
$Errors = array();
if ($form->hasValidData('one_per_account') && $form->one_per_account == true) {
$Instance->one_per_account = 1;
} else {
$Instance->one_per_account = 0;
}
if ($form->hasValidData('max_operators')) {
$Instance->max_operators = $form->max_operators;
} else {
$Instance->max_operators = 0;
}
$Instance->saveThis();
erLhcoreClassInstance::performOperatorsLimit($Instance);
$tpl->set('updated', true);
}
if (isset($_POST['UpdateAttributes'])) {
$definition = array('DateFormat' => new ezcInputFormDefinitionElement(ezcInputFormDefinitionElement::OPTIONAL, 'string'), 'DateHourFormat' => new ezcInputFormDefinitionElement(ezcInputFormDefinitionElement::OPTIONAL, 'string'), 'DateAndHourFormat' => new ezcInputFormDefinitionElement(ezcInputFormDefinitionElement::OPTIONAL, 'string'), 'UserTimeZone' => new ezcInputFormDefinitionElement(ezcInputFormDefinitionElement::OPTIONAL, 'string'), 'FrontSiteaccess' => new ezcInputFormDefinitionElement(ezcInputFormDefinitionElement::OPTIONAL, 'string'), 'Language' => new ezcInputFormDefinitionElement(ezcInputFormDefinitionElement::OPTIONAL, 'string'), 'UserTimeZone' => new ezcInputFormDefinitionElement(ezcInputFormDefinitionElement::OPTIONAL, 'string'));
$form = new ezcInputForm(INPUT_POST, $definition);
$Errors = array();
if ($form->hasValidData('Language')) {
$Instance->locale = $form->Language;
}
if ($form->hasValidData('DateFormat')) {
$Instance->date_format = $form->DateFormat;
}
if ($form->hasValidData('DateHourFormat')) {
$Instance->date_hour_format = $form->DateHourFormat;
}