View sourcecode

The following files exists in this folder. Click to view.

CFormUserLogin.php

1 lines ASCII Unix (LF)
1
<?php
/**
 * A form to login the user profile.
 * 
 * @package LydiaCore
 */
class CFormUserLogin extends CForm {

  /**
   * Constructor
   */
  public function __construct($object) {
    parent::__construct();
    $this->AddElement(new CFormElementText('acronym'))
         ->AddElement(new CFormElementPassword('password'))
         ->AddElement(new CFormElementSubmit('login', array('callback'=>array($object, 'DoLogin'))));

    $this->SetValidation('acronym', array('not_empty'))
         ->SetValidation('password', array('not_empty'));
  }
  
}