Overview

Packages

  • currencysymbol
  • MAbout
  • Mage
    • Admin
    • Adminhtml
    • AdminNotification
    • Api
    • Api2
    • Authorizenet
    • Backup
    • Bundle
    • Captcha
    • Catalog
    • CatalogIndex
    • CatalogInventory
    • CatalogRule
    • CatalogSearch
    • Centinel
    • Checkout
    • Cms
    • Compiler
    • Connect
    • Contacts
    • Core
    • Cron
    • CurrencySymbol
    • Customer
    • Dataflow
    • Directory
    • DirtectPost
    • Downloadable
    • Eav
    • GiftMessage
    • GoogleAnalytics
    • GoogleBase
    • GoogleCheckout
    • ImportExport
    • Index
    • Install
    • Log
    • Media
    • Newsletter
    • Oauth
    • Page
    • PageCache
    • Paygate
    • Payment
    • Paypal
    • PaypalUk
    • Persistent
    • Poll
    • ProductAlert
    • Rating
    • Reports
    • Review
    • Rss
    • Rule
    • Sales
    • SalesRule
    • Sedfriend
    • Sendfriend
    • Shipping
    • Sitemap
    • Tag
    • Tax
    • Usa
    • Weee
    • Widget
    • Wishlist
    • XmlConnect
  • None
  • Phoenix
    • Moneybookers
  • PHP
  • Zend
    • Date
    • Mime
    • XmlRpc

Classes

  • Mage_Index_Adminhtml_ProcessController
  • Mage_Index_Block_Adminhtml_Notifications
  • Mage_Index_Block_Adminhtml_Process
  • Mage_Index_Block_Adminhtml_Process_Edit
  • Mage_Index_Block_Adminhtml_Process_Edit_Form
  • Mage_Index_Block_Adminhtml_Process_Edit_Tab_Main
  • Mage_Index_Block_Adminhtml_Process_Edit_Tabs
  • Mage_Index_Block_Adminhtml_Process_Grid
  • Mage_Index_Block_Adminhtml_Process_Grid_Massaction
  • Mage_Index_Helper_Data
  • Mage_Index_Model_Event
  • Mage_Index_Model_Indexer
  • Mage_Index_Model_Indexer_Abstract
  • Mage_Index_Model_Mysql4_Abstract
  • Mage_Index_Model_Mysql4_Event
  • Mage_Index_Model_Mysql4_Event_Collection
  • Mage_Index_Model_Mysql4_Process
  • Mage_Index_Model_Mysql4_Process_Collection
  • Mage_Index_Model_Mysql4_Setup
  • Mage_Index_Model_Observer
  • Mage_Index_Model_Process
  • Mage_Index_Model_Resource_Abstract
  • Mage_Index_Model_Resource_Event
  • Mage_Index_Model_Resource_Event_Collection
  • Mage_Index_Model_Resource_Helper_Mysql4
  • Mage_Index_Model_Resource_Process
  • Mage_Index_Model_Resource_Process_Collection
  • Mage_Index_Model_Resource_Setup
  • Overview
  • Package
  • Class
  • Tree
  1: <?php
  2: /**
  3:  * Magento
  4:  *
  5:  * NOTICE OF LICENSE
  6:  *
  7:  * This source file is subject to the Open Software License (OSL 3.0)
  8:  * that is bundled with this package in the file LICENSE.txt.
  9:  * It is also available through the world-wide-web at this URL:
 10:  * http://opensource.org/licenses/osl-3.0.php
 11:  * If you did not receive a copy of the license and are unable to
 12:  * obtain it through the world-wide-web, please send an email
 13:  * to license@magentocommerce.com so we can send you a copy immediately.
 14:  *
 15:  * DISCLAIMER
 16:  *
 17:  * Do not edit or add to this file if you wish to upgrade Magento to newer
 18:  * versions in the future. If you wish to customize Magento for your
 19:  * needs please refer to http://www.magentocommerce.com for more information.
 20:  *
 21:  * @category    Mage
 22:  * @package     Mage_Index
 23:  * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
 24:  * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
 25:  */
 26: 
 27: class Mage_Index_Block_Adminhtml_Process_Edit_Tab_Main
 28:     extends Mage_Adminhtml_Block_Widget_Form
 29:     implements Mage_Adminhtml_Block_Widget_Tab_Interface
 30: {
 31:     protected function _prepareForm()
 32:     {
 33:         $model = Mage::registry('current_index_process');
 34:         $form = new Varien_Data_Form();
 35:         $form->setHtmlIdPrefix('index_process_');
 36:         $fieldset = $form->addFieldset(
 37:             'base_fieldset',
 38:             array('legend'=>Mage::helper('index')->__('General'), 'class'=>'fieldset-wide')
 39:         );
 40: 
 41:         $fieldset->addField('process_id', 'hidden', array('name' => 'process', 'value'=>$model->getId()));
 42: 
 43:         $fieldset->addField('name', 'note', array(
 44:             'label' => Mage::helper('index')->__('Index Name'),
 45:             'title' => Mage::helper('index')->__('Index Name'),
 46:             'text'  => '<strong>'.$model->getIndexer()->getName().'</strong>'
 47:         ));
 48: 
 49:         $fieldset->addField('description', 'note', array(
 50:             'label' => Mage::helper('index')->__('Index Description'),
 51:             'title' => Mage::helper('index')->__('Index Description'),
 52:             'text'  => $model->getIndexer()->getDescription()
 53:         ));
 54: 
 55:         $fieldset->addField('mode', 'select', array(
 56:             'label' => Mage::helper('index')->__('Index Mode'),
 57:             'title' => Mage::helper('index')->__('Index Mode'),
 58:             'name'  => 'mode',
 59:             'value' => $model->getMode(),
 60:             'values'=> $model->getModesOptions()
 61:         ));
 62: 
 63:         //$form->setValues($model->getData());
 64:         $this->setForm($form);
 65:         return parent::_prepareForm();
 66:     }
 67: 
 68:     /**
 69:      * Prepare label for tab
 70:      *
 71:      * @return string
 72:      */
 73:     public function getTabLabel()
 74:     {
 75:         return Mage::helper('index')->__('Process Information');
 76:     }
 77: 
 78:     /**
 79:      * Prepare title for tab
 80:      *
 81:      * @return string
 82:      */
 83:     public function getTabTitle()
 84:     {
 85:         return Mage::helper('index')->__('Process Information');
 86:     }
 87: 
 88:     /**
 89:      * Returns status flag about this tab can be showen or not
 90:      *
 91:      * @return true
 92:      */
 93:     public function canShowTab()
 94:     {
 95:         return true;
 96:     }
 97: 
 98:     /**
 99:      * Returns status flag about this tab hidden or not
100:      *
101:      * @return true
102:      */
103:     public function isHidden()
104:     {
105:         return false;
106:     }
107: 
108:     /**
109:      * Check permission for passed action
110:      *
111:      * @param string $action
112:      * @return bool
113:      */
114:     protected function _isAllowedAction($action)
115:     {
116:         return true;
117:     }
118: }
119: 
Magento 1.7.0.2 API documentation generated by ApiGen 2.8.0