This repository was archived by the owner on Mar 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #197 from Flagbit/develop
Develop
- Loading branch information
Showing
109 changed files
with
1,626 additions
and
856 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
72 changes: 72 additions & 0 deletions
72
src/app/code/community/FACTFinder/Core/Block/Adminhtml/Form/Field/Column/Type.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
<?php | ||
/** | ||
* FACTFinder_Core | ||
* | ||
* @category Mage | ||
* @package FACTFinder_Core | ||
* @author Flagbit Magento Team <magento@flagbit.de> | ||
* @copyright Copyright (c) 2017 Flagbit GmbH & Co. KG | ||
* @license https://opensource.org/licenses/MIT The MIT License (MIT) | ||
* @link http://www.flagbit.de | ||
* | ||
*/ | ||
|
||
/** | ||
* Class FACTFinder_Core_Block_Adminhtml_Form_Field_Attribute | ||
* | ||
* @category Mage | ||
* @package FACTFinder_Core | ||
* @author Flagbit Magento Team <magento@flagbit.de> | ||
* @copyright Copyright (c) 2017 Flagbit GmbH & Co. KG (http://www.flagbit.de) | ||
* @license https://opensource.org/licenses/MIT The MIT License (MIT) | ||
* @link http://www.flagbit.de | ||
*/ | ||
class FACTFinder_Core_Block_Adminhtml_Form_Field_Column_Type extends Mage_Core_Block_Html_Select | ||
{ | ||
|
||
/** | ||
* Set initial options | ||
*/ | ||
protected function _construct() | ||
{ | ||
parent::_construct(); | ||
|
||
$this->setId('type_select') | ||
->setTitle('type') | ||
->setClass('type_select') | ||
; | ||
} | ||
|
||
|
||
/** | ||
* Set name of the html input | ||
* | ||
* @param string $value | ||
* | ||
* @return mixed | ||
*/ | ||
public function setInputName($value) | ||
{ | ||
return $this->setName($value); | ||
} | ||
|
||
|
||
/** | ||
* Render block HTML | ||
* | ||
* @return string | ||
*/ | ||
public function _toHtml() | ||
{ | ||
if (!$this->getOptions()) { | ||
foreach (array('text' => 'Text', 'number' => 'Number') as $id => $label) { | ||
$htmlLabel = htmlspecialchars($label, ENT_QUOTES); | ||
$this->addOption($id, $htmlLabel); | ||
} | ||
} | ||
|
||
return parent::_toHtml(); | ||
} | ||
|
||
|
||
} |
Oops, something went wrong.