コード例 #1
0
ファイル: Website.php プロジェクト: smitmanglam/staging
 /**
  * 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;
 }
コード例 #2
0
ファイル: Yesno.php プロジェクト: monarcmoso/beta2
 /**
  * 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;
 }
コード例 #3
0
ファイル: Country.php プロジェクト: smitmanglam/staging
 /**
  * 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;
 }
コード例 #4
0
ファイル: Timestamp.php プロジェクト: smitmanglam/staging
 /**
  * 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;
 }
コード例 #6
0
 /**
  * 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;
 }
コード例 #7
0
 /**
  * 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;
 }
コード例 #8
0
ファイル: Dropdown.php プロジェクト: nsergo/UMC1.9
 /**
  * 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;
 }
コード例 #9
0
 /**
  * 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;
 }
コード例 #10
0
 /**
  * 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;
 }