37 lines
825 B
PHP
37 lines
825 B
PHP
<?php
|
|
|
|
class Application_Form_PlaylistMetadata extends Zend_Form
|
|
{
|
|
|
|
public function init()
|
|
{
|
|
// Set the method for the display form to POST
|
|
$this->setMethod('post');
|
|
|
|
// Add username element
|
|
$this->addElement('text', 'title', array(
|
|
'label' => 'Title:',
|
|
'required' => true,
|
|
'filters' => array('StringTrim'),
|
|
'validators' => array(
|
|
'NotEmpty',
|
|
)
|
|
));
|
|
|
|
// Add the comment element
|
|
$this->addElement('textarea', 'description', array(
|
|
'label' => 'Description:',
|
|
'required' => false,
|
|
));
|
|
|
|
// Add the submit button
|
|
$this->addElement('submit', 'submit', array(
|
|
'ignore' => true,
|
|
'label' => 'Submit',
|
|
));
|
|
}
|
|
|
|
|
|
}
|
|
|