'sorter ASC'); protected function _bindListColumns($list) { $list->addColumn('image', 'image', array( 'attribs' => array('width' => 100, 'align' => 'center', 'valign' => 'top')) ); $list->addColumn('text', 'name', array( 'attribs' => array('width' => 150, 'align' => 'center', 'valign' => 'top'), 'orderBy' => 'name') ); $list->addColumn('text', 'jobTitle', array( 'attribs' => array('width' => 150, 'align' => 'left', 'valign' => 'top'), 'orderBy' => 'jobTitle') ); $list->addColumn('text', 'shortBio', array( 'truncateLength' => 250, 'attribs' => array('align' => 'left', 'valign' => 'top')) ); $list->addColumn('options', 'options', array ( 'attribs' => array('width' => 100, 'align' => 'center', 'valign' => 'top'))); return $this; } protected function _bindFormFields($form) { $form->addElement( 'extendedImage', 'image', array('label' => 'Image', 'required' => false, 'resize' => '320x210') ); $form->addElement( 'text', 'name', array( 'label' => 'Name', 'required' => true) ); $form->addElement( 'text', 'jobTitle', array( 'label' => 'Job Title', 'required' => true) ); $form->addElement( 'text', 'email', array( 'label' => 'E-mail', 'required' => false) ); $form->email->addValidator('EmailAddress'); $form->email->addValidator('StringLength', false, array(0, 150)); $form->addElement( 'text', 'phone', array( 'label' => 'Phone', 'required' => false) ); $form->phone->addValidator('StringLength', false, array(0, 30)); $form->addElement( 'text', 'cell', array( 'label' => 'Cell', 'required' => false) ); $form->cell->addValidator('StringLength', false, array(0, 30)); $form->addElement( 'textarea', 'shortBio', array('label' => 'Short Bio', 'required' => true, 'rows' => 5, 'description' => 'Please try to limit the intro text to 250 symbols.') ); //$form->shortBio->addValidator('StringLength', false, array(0, '250')); $form->addElement( 'htmlEditor', 'fullBio', array( 'label' => 'Full Bio', 'required' => true, 'height' => '400px') ); $form->image->addValidator('File_IsImage'); $form->addElement( 'text', 'url', array('label' => 'LinkedIn Profile Url', 'class' => 'text', 'filters' => array('StringTrim'), 'validators' => array('Url'), 'description' => 'Example: http://www.linkedin.com/in/username') ); return $this; } public function getReorderTitleColumn() { if (null === $this->_reorderTitleColumn) { $this->setReorderTitleColumn('name'); } return $this->_reorderTitleColumn; } }