Example #1
0
 public function __construct($options = null)
 {
     $default = array('id' => 'form-contacts', 'action' => Zend_Controller_Front::getInstance()->getBaseUrl() . Axis_Locale::getLanguageUrl() . '/contacts');
     if (is_array($options)) {
         $default = array_merge($default, $options);
     }
     parent::__construct($default);
 }
Example #2
0
 public function __construct($options = array())
 {
     $default = array('id' => 'form-info', 'action' => Zend_Controller_Front::getInstance()->getBaseUrl() . Axis_Locale::getLanguageUrl() . '/account/info/change');
     if (null !== $options || !count($options)) {
         $default = array_merge($default, $options);
     }
     parent::__construct($default);
 }
Example #3
0
 /**
  * @param array $options[productId => int]
  */
 function __construct($options = null)
 {
     $product = $options['productId'];
     $default = array('id' => 'form-review', 'action' => Zend_Controller_Front::getInstance()->getBaseUrl() . Axis_Locale::getLanguageUrl() . '/review/add/product/' . $product);
     if (is_array($options)) {
         $default = array_merge($default, $options);
     }
     parent::__construct($default);
 }
Example #4
0
 public function __construct($options = null)
 {
     $page = $options['pageId'];
     $default = array('id' => 'form-page-comment', 'action' => Zend_Controller_Front::getInstance()->getBaseUrl() . Axis_Locale::getLanguageUrl() . '/cms/comment/add/page/' . $page . '#form-page-comment');
     if (is_array($options)) {
         $default = array_merge($default, $options);
     }
     parent::__construct($default);
 }
Example #5
0
 /**
  *
  * @param array $defaults
  * @return Axis_Account_Model_Form_Address Fluent interface
  */
 public function setDefaults(array $defaults)
 {
     parent::setDefaults($defaults);
     $form = $this;
     if ($subform = $this->getSubForms()) {
         $form = current($subform);
     }
     if (array_key_exists('zone_id', $defaults) && isset($this->_zones[$defaults['country_id']])) {
         $form->getElement('zone_id')->setAttribs(array('options' => $this->_zones[$defaults['country_id']]));
         $form->setDefault('zone_id', $defaults['zone_id']);
     }
     return $this;
 }
Example #6
0
 public function __construct($options = array())
 {
     $default = array('id' => 'form-signup', 'action' => Zend_Controller_Front::getInstance()->getBaseUrl() . Axis_Locale::getLanguageUrl() . '/account/auth/register');
     $default = array_merge($default, $options);
     parent::__construct($default);
 }