Mage_Adminhtml_Block_Cms_Page_Edit Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Cms_Page_Edit:

Mage_Adminhtml_Block_Widget_Form_Container Mage_Adminhtml_Block_Widget_Container Mage_Adminhtml_Block_Template Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 __construct ()
 getHeaderText ()


Detailed Description

Definition at line 34 of file Edit.php.


Constructor & Destructor Documentation

__construct (  ) 

Constructor

By default is looking for first argument as array and assignes it as object attributes This behaviour may change in child classes

Reimplemented from Mage_Adminhtml_Block_Widget_Form_Container.

Definition at line 37 of file Edit.php.

00038     {
00039         $this->_objectId = 'page_id';
00040         $this->_controller = 'cms_page';
00041 
00042         parent::__construct();
00043 
00044         $this->_updateButton('save', 'label', Mage::helper('cms')->__('Save Page'));
00045         $this->_updateButton('delete', 'label', Mage::helper('cms')->__('Delete Page'));
00046 
00047         $this->_addButton('saveandcontinue', array(
00048             'label'     => Mage::helper('adminhtml')->__('Save And Continue Edit'),
00049             'onclick'   => 'saveAndContinueEdit()',
00050             'class'     => 'save',
00051         ), -100);
00052 
00053         $this->_formScripts[] = "
00054             function toggleEditor() {
00055                 if (tinyMCE.getInstanceById('page_content') == null) {
00056                     tinyMCE.execCommand('mceAddControl', false, 'page_content');
00057                 } else {
00058                     tinyMCE.execCommand('mceRemoveControl', false, 'page_content');
00059                 }
00060             }
00061 
00062             function saveAndContinueEdit(){
00063                 editForm.submit($('edit_form').action+'back/edit/');
00064             }
00065         ";
00066     }


Member Function Documentation

getHeaderText (  ) 

Get header text

Returns:
string

Reimplemented from Mage_Adminhtml_Block_Widget_Container.

Definition at line 68 of file Edit.php.

00069     {
00070         if (Mage::registry('cms_page')->getId()) {
00071             return Mage::helper('cms')->__("Edit Page '%s'", $this->htmlEscape(Mage::registry('cms_page')->getTitle()));
00072         }
00073         else {
00074             return Mage::helper('cms')->__('New Page');
00075         }
00076     }


The documentation for this class was generated from the following file:

Generated on Sat Jul 4 17:22:47 2009 for Magento by  doxygen 1.5.8