本文整理汇总了PHP中Installer::iuser_is_valid方法的典型用法代码示例。如果您正苦于以下问题:PHP Installer::iuser_is_valid方法的具体用法?PHP Installer::iuser_is_valid怎么用?PHP Installer::iuser_is_valid使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Installer
的用法示例。
在下文中一共展示了Installer::iuser_is_valid方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: testIuserIsInvalid
public function testIuserIsInvalid()
{
$post_variables = $this->post_variables;
$post_variables['iuser'] = 'initial user';
$installer = new Installer($post_variables, $this->manualPath);
$this->assertEquals(FALSE, $installer->iuser_is_valid());
}
示例2:
}
echo "<TR VALIGN='TOP' class='noclone'><TD COLSPAN=2><font color='red'>OPENEMR USER:</font></TD></TR>";
echo "<TR VALIGN='TOP' class='noclone'><TD><span class='text'>Initial User:</span></TD><TD><INPUT SIZE='30' TYPE='TEXT' NAME='iuser' VALUE='admin'></TD><TD><span class='text'>(This is the login name of user that will be created for you. Limit this to one word.)</span></TD></TR>\n<TR VALIGN='TOP' class='noclone'><TD><span class='text'>Initial User Password:</span></TD><TD><INPUT SIZE='30' TYPE='PASSWORD' NAME='iuserpass' VALUE=''></TD><TD><span class='text'>(This is the password for the initial user account above.)</span></TD></TR>\n<TR VALIGN='TOP' class='noclone'><TD><span class='text'>Initial User's First Name:</span></TD><TD><INPUT SIZE='30' TYPE='TEXT' NAME='iufname' VALUE='Administrator'></TD><TD><span class='text'>(This is the First name of the 'initial user'.)</span></TD></TR>\n<TR VALIGN='TOP' class='noclone'><TD><span class='text'>Initial User's Last Name:</span></TD><TD><INPUT SIZE='30' TYPE='TEXT' NAME='iuname' VALUE='Administrator'></TD><TD><span class='text'>(This is the Last name of the 'initial user'.)</span></TD></TR>\n<TR VALIGN='TOP' class='noclone'><TD><span class='text'>Initial Group:</span></TD><TD><INPUT SIZE='30' TYPE='TEXT' NAME='igroup' VALUE='Default'></TD><TD><span class='text'>(This is the group that will be created for your users. This should be the name of your practice.)</span></TD></TR>\n";
echo "<TR VALIGN='TOP'><TD> </TD></TR>";
echo "</TABLE>\n<br>\n<INPUT TYPE='SUBMIT' VALUE='Continue'><br></FORM><br>";
break;
case 3:
// Form Validation
// (applicable if not cloning from another database)
if (empty($installer->clone_database)) {
if (!$installer->login_is_valid()) {
echo "ERROR. Please pick a proper 'Login Name'.<br>\n";
echo "Click Back in browser to re-enter.<br>\n";
break;
}
if (!$installer->iuser_is_valid()) {
echo "ERROR. The 'Initial User' field can only contain one word and no spaces.<br>\n";
echo "Click Back in browser to re-enter.<br>\n";
break;
}
if (!$installer->user_password_is_valid()) {
echo "ERROR. Please pick a proper 'Initial User Password'.<br>\n";
echo "Click Back in browser to re-enter.<br>\n";
break;
}
}
if (!$installer->password_is_valid()) {
echo "ERROR. Please pick a proper 'Password'.<br>\n";
echo "Click Back in browser to re-enter.<br>\n";
break;
}