/** * get the options for form input * @access public * @return string * @author Marius Strajeru <*****@*****.**> */ public function getFormOptions() { $options = parent::getFormOptions(); $module = strtolower($this->getAttribute()->getEntity()->getModule()->getModuleName()); $options .= self::OPTION_SEPARATOR . "'values' => Mage::getSingleton('adminhtml/system_store')->getWebsiteValuesForForm(),\n"; return $options; }
/** * get the options for form input * @access public * @return string * @author Marius Strajeru <*****@*****.**> */ public function getFormOptions() { $options = parent::getFormOptions(); $module = strtolower($this->getAttribute()->getEntity()->getModule()->getModuleName()); $options .= self::OPTION_SEPARATOR . "'values'=> array(\n\t\t\t\tarray(\n\t\t\t\t\t'value' => 1,\n\t\t\t\t\t'label' => Mage::helper('" . $module . "')->__('Yes'),\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'value' => 0,\n\t\t\t\t\t'label' => Mage::helper('" . $module . "')->__('No'),\n\t\t\t\t),\n\t\t\t),\n"; return $options; }
/** * get the options for form input * @access public * @return string * @author Marius Strajeru <*****@*****.**> */ public function getFormOptions() { $options = parent::getFormOptions(); $module = strtolower($this->getAttribute()->getEntity()->getModule()->getModuleName()); $options .= self::OPTION_SEPARATOR . "'values'=> Mage::getResourceModel('directory/country_collection')->toOptionArray(),\n"; return $options; }
/** * get options for admin form * @access public * @return string * @author Marius Strajeru <*****@*****.**> */ public function getFormOptions() { $options = parent::getFormOptions(); $options .= ' \'image\' => $this->getSkinUrl(\'images/grid-cal.gif\'),' . "\n"; $options .= ' \'format\' => $dateFormatIso,' . "\n"; return $options; }
/** * get the options for form input * @access public * @return string * @author Marius Strajeru <*****@*****.**> */ public function getFormOptions() { $options = ''; if ($this->getEditor() && !$this->getAttribute()->getEntity()->getIsTree()) { $options = self::OPTION_SEPARATOR . "'config'\t=> " . "\$" . "wysiwygConfig,\n"; } $options .= parent::getFormOptions(); return $options; }
/** * get admin from options * * @access public * @return string * @author Marius Strajeru <*****@*****.**> */ public function getFormOptions() { $options = parent::getFormOptions(); $options .= $this->getPadding(3); $options .= "'values'=> Mage::getResourceModel('directory/country_collection')->toOptionArray(),"; $options .= $this->getEol(); return $options; }
/** * get the options for form input * * @access public * @return string * @author Marius Strajeru <*****@*****.**> */ public function getFormOptions() { $options = ''; if ($this->getEditor() && !$this->getEntity()->getIsTree()) { $options = $this->getPadding(3) . "'config' => " . "\$" . "wysiwygConfig," . $this->getEol(); } $options .= parent::getFormOptions(); return $options; }
/** * get column ddl size * * @access public * @return string * @author Marius Strajeru <*****@*****.**> */ public function getSizeDdl() { $size = $this->getSubTypeInstance()->getSizeDdl(); if (empty($size)) { return parent::getSizeDdl(); } return $size; }
/** * get the options for form input * * @access public * @return string * @author Marius Strajeru <*****@*****.**> */ public function getFormOptions() { $options = parent::getFormOptions(); $padding = $this->getPadding(3); $tab = $this->getPadding(); $eol = $this->getEol(); $module = $this->getModule()->getLowerModuleName(); $namespace = $this->getNamespace(true); $options .= $padding . "'values'=> array(" . $eol; $options .= $padding . $tab . 'array(' . $eol; $options .= $padding . $tab . $tab . "'value' => 1," . $eol; $options .= $padding . $tab . $tab . "'label' => Mage::helper('" . $namespace . '_' . $module . "')->__('Yes')," . $eol; $options .= $padding . $tab . ")," . $eol; $options .= $padding . $tab . 'array(' . $eol; $options .= $padding . $tab . $tab . "'value' => 0," . $eol; $options .= $padding . $tab . $tab . "'label' => Mage::helper('" . $namespace . '_' . $module . "')->__('No')," . $eol; $options .= $padding . $tab . ")," . $eol; $options .= $padding . ")," . $eol; return $options; }
/** * get options for admin form * * @access public * @return string * @author Marius Strajeru <*****@*****.**> */ public function getFormOptions() { $options = parent::getFormOptions(); $padding = $this->getPadding(3); $eol = $this->getEol(); $options .= $padding . '\'image\' => $this->getSkinUrl(\'images/grid-cal.gif\'),' . $eol; $options .= $padding . '\'format\' => Mage::app()->getLocale()->getDateFormat(Mage_Core_Model_Locale::FORMAT_TYPE_SHORT),' . $eol; return $options; }