westdc-zf1/application/models/MetadataImportForm.php

24 lines
663 B
PHP
Executable File

<?php
class MetadataImportForm extends Zend_Form
{
public function __construct($options = null)
{
parent::__construct($options);
$this->setName('metadataImport');
$directory = new Zend_Form_Element_Text('directory');
$directory->setLabel('目录')
->setRequired(true)
->addFilter('StripTags')
->addFilter('StringTrim')
->addValidator('NotEmpty');
$id = new Zend_Form_Element_Hidden('id');
$submit = new Zend_Form_Element_Submit('submit');
$submit->setAttrib('id', 'submitbutton');
$this->addElements(array($id, $artist, $title, $submit));
}
}