thrownew\UserFormException('FormElement: type=checkbox - checked and unchecked can\'t be the same: '.$formElement[FE_CHECKBOX_CHECKED],ERROR_CHECKBOX_EQUAL);
thrownew\UserFormException("Missing definition (- nothing found in 'sql1', 'parameter:itemList', 'enum-' or 'set-definition'",ERROR_MISSING_ITEM_LIST);
}
if(count($itemKey)===0){
$itemKey=$itemValue;
}
// Process 'emptyHide' before 'emptyItemAtStart' / 'emptyItemAtEnd': than 'emptyItem*' are still possible.
// SQL (4 columns, none 'id', one 'label' ) - Take the first and the fourth two columns
$expectKeys=['100','200','300'];
$expectValues=['basic','formelement','layout'];
$formElement['sql1']=$this->dbArray[DB_INDEX_DEFAULT]->sql('SELECT ord, created, modified, name AS label FROM FormElement AS fe ORDER BY fe.id LIMIT 3');
// SQL (4 columns, none 'id', one 'label' ) - Take the first and the fourth two columns
$expectKeys=['1','2','3'];
$expectValues=['basic','formelement','layout'];
$formElement['sql1']=$this->dbArray[DB_INDEX_DEFAULT]->sql('SELECT ord, created, modified, name AS label, id FROM FormElement AS fe ORDER BY fe.id LIMIT 3');