Example #1
0
 /**
  * @param   string  $name   name of the select tag
  * @param   string  $value  value for the select tag
  * @param   array   $attr   attributes for the select tag
  * @return  string  HTML select element
  */
 public function selectTimezone($name, $value, $attribs = null)
 {
     $options = Digitalus_Validate_Timezone::getValidTimezones(null, true);
     $form = new Digitalus_Form();
     $select = $form->createElement('select', $name, array('multiOptions' => $options, 'value' => $value));
     if (is_array($attribs)) {
         $select->setAttribs($attribs);
     }
     return $select;
 }
Example #2
0
 /**
  *
  */
 public function selectTimezone($name, $value, $attr = null)
 {
     $data = Digitalus_Validate_Timezone::getValidTimezones(null, true);
     return $this->view->formSelect($name, $value, $attr, $data);
 }