summaryrefslogblamecommitdiffstats
path: root/application/forms/NewPassword.php
blob: d3ca34ba3c42c8120da709a733439b3a22846235 (plain) (tree)















































                                                                           
<?php
/*
 * Copyright (c) 2011 - OpenSLX GmbH, RZ Uni Freiburg
 * This program is free software distributed under the GPL version 2.
 * See http://gpl.openslx.org/
 *
 * If you have any feedback please consult http://feedback.openslx.org/ and
 * send your suggestions, praise, or complaints to feedback@openslx.org
 *
 * General information about OpenSLX can be found at http://openslx.org/
 */

class Application_Form_NewPassword extends Zend_Form
{
	private $personID;

	public function setPersonID($personID){
		$this->personID = $personID;
	}

	public function init()
	{
		$this->setName("NewPassword");
		$this->setMethod('post');

		$this->addElement('hidden', 'personID', array(
            'value' => $this->personID
		));

		$this->addElement('password', 'password', array(
            'filters'    => array('StringTrim'),
            'validators' => array(
		array('StringLength', false, array(0, 50)),
		),
            'required'   => true,
            'label'      => 'Password:',
		));

		$this->addElement('submit', 'savePassword', array(
            'required' => false,
            'ignore'   => true,
            'label'    => 'Save',
		));
	}


}