Source for file ALoginWidget.php
Documentation is available at ALoginWidget.php
* @author Jordan CM Wambaugh <jordan@wamabugh.org>
* A widget for username/password prompt
* @author Jordan CM Wambaugh <jordan@wamabugh.org>
* @signal loginPushed - Emitted when the user completes the form
$layout->addWidget(new AHTMLText("User Name:"),0,0);
$layout->addWidget($userName,0,1);
$layout->addWidget(new AHTMLText("Password:"),1,0);
$password->setAttribute('type','password');
$layout->addWidget($password,1,1);
$layout->addWidget($button,2,0,2);
//make our connection to the button.
//when to button is clicked, emit a new signal with our login information.
$this->validator->add($userName->getAttribute('id'), 'string', array('minLength'=>
4, "required"=>
true));
$this->validator->add($password->getAttribute('id'), 'string', array('minLength'=>
4, "required"=>
true));
//Alia($button,'clicked','trigger');
Documentation generated on Fri, 11 Jul 2008 13:28:41 -0400 by phpDocumentor 1.4.2