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
<?php | |
/** | |
* News List admin edit form image tab | |
* | |
* @author Magento | |
*/ | |
class Magentostudy_News_Block_Adminhtml_News_Edit_Tab_Image | |
extends Mage_Adminhtml_Block_Widget_Form | |
implements Mage_Adminhtml_Block_Widget_Tab_Interface | |
{ |
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
<?php | |
/** | |
* News List admin edit form content tab | |
* | |
* @author Magento | |
*/ | |
class Magentostudy_News_Block_Adminhtml_News_Edit_Tab_Content | |
extends Mage_Adminhtml_Block_Widget_Form | |
implements Mage_Adminhtml_Block_Widget_Tab_Interface | |
{ |
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
<?php | |
/** | |
* Custom image form element that generates correct thumbnail image URL | |
* | |
* @author Magento | |
*/ | |
class Magentostudy_News_Block_Adminhtml_News_Edit_Form_Element_Image extends Varien_Data_Form_Element_Image | |
{ | |
/** | |
* Get image preview url |
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
<?php | |
/** | |
* News List admin edit form tabs block | |
* | |
* @author Magento | |
*/ | |
class Magentostudy_News_Block_Adminhtml_News_Edit_Tabs extends Mage_Adminhtml_Block_Widget_Tabs | |
{ | |
/** | |
* Initialize tabs and define tabs block settings |
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
<?php | |
/** | |
* News List admin edit form block | |
* | |
* @author Magento | |
*/ | |
class Magentostudy_News_Block_Adminhtml_News_Edit_Form extends Mage_Adminhtml_Block_Widget_Form | |
{ | |
/** | |
* Prepare form action |
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
<?php | |
/** | |
* News List admin edit form container | |
* | |
* @author Magento | |
*/ | |
class Magentostudy_News_Block_Adminhtml_News_Edit extends Mage_Adminhtml_Block_Widget_Form_Container | |
{ | |
/** | |
* Initialize edit form container |
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
<?php | |
/** | |
* News List admin grid | |
* | |
* @author Magento | |
*/ | |
class Magentostudy_News_Block_Adminhtml_News_Grid extends Mage_Adminhtml_Block_Widget_Grid | |
{ | |
/** | |
* Init Grid default properties |
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
<?php | |
/** | |
* News List admin grid container | |
* | |
* @author Magento | |
*/ | |
class Magentostudy_News_Block_Adminhtml_News extends Mage_Adminhtml_Block_Widget_Grid_Container | |
{ | |
/** | |
* Block constructor |
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
<?xml version="1.0"?> | |
<!-- | |
/** | |
* Magento backend layout | |
* | |
* @author Magento | |
*/ | |
--> | |
<layout> | |
<adminhtml_news_index> |
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
<?php | |
/** | |
* News controller | |
* | |
* @author Magento | |
*/ | |
class Magentostudy_News_Adminhtml_NewsController extends Mage_Adminhtml_Controller_Action | |
{ | |
/** | |
* Init actions |