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); }
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); }
/** * @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); }
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); }
/** * * @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; }
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); }