'sorter ASC'); protected $_hasFilter = true; protected function _bindListColumns($list) { $list->addColumn('no', 'no', array('orderBy' => 'sorter')) ->addColumn('text', 'title', array('orderBy' => 'title', 'truncateLength' => 150, 'attribs' => array('width' => 250))) ->addColumn('text', 'recipient', array('truncateLength' => 255)) ->addColumn('options', 'options', array('attribs' => array('width' => 120))); } protected function _bindFormFields($form) { $form->addElement('text', 'title', array('label' => 'Title', 'required' => true, 'maxLength' => 255)); $form->title->addValidator('StringLength', false, array('max' => 255)); $form->addElement( 'textarea', 'recipient', array( 'label' => 'Recipients' . ' Enter email address(es) that should receive a notification ' . 'email for this Area of Interest', 'rows' => 5, // 'cols' => 48, 'description' => 'Use commas to separate email addresses' ) ); $form->recipient->getDecorator('Label')->setOption('escape', false); return $this; } protected function _getDefaultLinks() { $links = parent::_getDefaultLinks(); $fullAlias = Qs_SiteMap::findFirst(null, array('type' => 'Form_Contact_Admin'), null, 'fullAlias'); if (false !== $fullAlias) { $link = array('title' => 'Contact Form Submissions', 'url' => $fullAlias); array_unshift($links, $link); } return $links; } }