当前位置: 首页>>代码示例>>PHP>>正文


PHP Aitoc_Aitsys_Abstract_Service::initSource方法代码示例

本文整理汇总了PHP中Aitoc_Aitsys_Abstract_Service::initSource方法的典型用法代码示例。如果您正苦于以下问题:PHP Aitoc_Aitsys_Abstract_Service::initSource方法的具体用法?PHP Aitoc_Aitsys_Abstract_Service::initSource怎么用?PHP Aitoc_Aitsys_Abstract_Service::initSource使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Aitoc_Aitsys_Abstract_Service的用法示例。


在下文中一共展示了Aitoc_Aitsys_Abstract_Service::initSource方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: getFormHtml

<?php

/**
 * Product:     Loyalty Program for Enterprise Edition
 * Package:     Aitoc_Aitloyalty_10.0.10_574534
 * Purchase ID: INzRIwyyaNoeOLERhAgt4U28qVKIeEa3dfPrgaAN3C
 * Generated:   2013-05-13 06:36:55
 * File path:   app/code/local/Aitoc/Aitloyalty/Block/Quote/Options.php
 * Copyright:   (c) 2013 AITOC, Inc.
 */
if (Aitoc_Aitsys_Abstract_Service::initSource(__FILE__, 'Aitoc_Aitloyalty')) {
    PYrZaaPAlDPOXjfl('e900fe7e957c66aa9f41b44a5bb2de78');
    /**
     * @copyright  Copyright (c) 2009 AITOC, Inc. 
     */
    class Aitoc_Aitloyalty_Block_Quote_Options extends Mage_Adminhtml_Block_Widget_Form
    {
        public function getFormHtml()
        {
            $sHtml = parent::getFormHtml();
            $sHtml .= '<script type="text/javascript">aitloyalty_ActionOnRuleDisplayChange();</script>';
            return $sHtml;
        }
        protected function _prepareForm()
        {
            $model = Mage::registry('current_promo_quote_rule');
            //$form = new Varien_Data_Form(array('id' => 'edit_form1', 'action' => $this->getData('action'), 'method' => 'post'));
            $form = new Varien_Data_Form();
            $form->setHtmlIdPrefix('rule_');
            $fieldset = $form->addFieldset('display_fieldset', array('legend' => Mage::helper('salesrule')->__('Using the form below you can enable, disable and configure display of the rule in customers\' account')));
            $oDb = Mage::getModel('sales_entity/order')->getReadConnection();
开发者ID:sagmahajan,项目名称:aswan_release,代码行数:31,代码来源:Options.php

示例2: _construct

<?php

/**
 * Product:     Layered Navigation Pro for Enterprise Edition - 16/08/12
 * Package:     AdjustWare_Nav_10.4.9_10.0.0_557110
 * Purchase ID: hXgQU3oI8FOfJ8PDCk5s6h6XPM5oH2Kx0N6TCAPkqN
 * Generated:   2013-04-22 06:59:44
 * File path:   app/code/local/AdjustWare/Nav/Model/Rewrite/CatalogResourceEavMysql4ProductIndexerEav.php
 * Copyright:   (c) 2013 AITOC, Inc.
 */
if (Aitoc_Aitsys_Abstract_Service::initSource(__FILE__, 'AdjustWare_Nav')) {
    mREwjpoZaMTrjgEm('ab11072a87cb1bef7a31ab4fae2a0470');
    class AdjustWare_Nav_Model_Rewrite_CatalogResourceEavMysql4ProductIndexerEav extends Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Indexer_Eav
    {
        protected function _construct()
        {
            parent::_construct();
            $this->getIndexers();
            $this->_types['configurable'] = Mage::getResourceModel('adjnav/catalog_product_indexer_configurable');
        }
    }
}
开发者ID:sagmahajan,项目名称:aswan_release,代码行数:22,代码来源:CatalogResourceEavMysql4ProductIndexerEav.php

示例3: render

<?php

/**
 * Product:     Individual Promotions for Magento Enterpise Edition
 * Package:     Aitoc_Aitindividpromo_10.0.7_574525
 * Purchase ID: UjgdLvjpFE0u1HHQEOk2KNCXazbZ9kQjUnTtO4dMb0
 * Generated:   2013-05-13 06:35:45
 * File path:   app/code/local/Aitoc/Aitindividpromo/Block/Widget/GridColumnRendererGroup.php
 * Copyright:   (c) 2013 AITOC, Inc.
 */
if (Aitoc_Aitsys_Abstract_Service::initSource(__FILE__, 'Aitoc_Aitindividpromo')) {
    UIjBDajBZqqIsDaw('030de8d978734ec4a57843aa62a76b96');
    /**
     * @copyright  Copyright (c) 2009 AITOC, Inc. 
     */
    class Aitoc_Aitindividpromo_Block_Widget_GridColumnRendererGroup extends Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Abstract
    {
        public function render(Varien_Object $row)
        {
            if (version_compare(Mage::getVersion(), '1.12.0.0', '>=')) {
                $rule_id = $row->getData('rule_id');
                $collection = Mage::getModel('salesrule/rule')->load($rule_id);
                $collection->getCollection()->getSelect()->join(array('table_alias' => Mage::getSingleton('core/resource')->getTableName('salesrule_customer_group')), 'main_table.rule_id = table_alias.rule_id', array('table_alias.*'));
                $sGroups = implode(',', $collection->getData($this->getColumn()->getIndex()));
            } else {
                $sGroups = $row->getData($this->getColumn()->getIndex());
            }
            if ($sGroups or $sGroups === '0') {
                $oAitindividpromo = Mage::getModel('aitindividpromo/aitindividpromo');
                $aCustomerGroupHash = $oAitindividpromo->getCustomerGroups(false);
                $aRowGroupHash = explode(',', $sGroups);
开发者ID:sagmahajan,项目名称:aswan_release,代码行数:31,代码来源:GridColumnRendererGroup.php


注:本文中的Aitoc_Aitsys_Abstract_Service::initSource方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。