load active shop banner list
779859
public function loadBanners()
    {
        $oBaseObject = $this->getBaseObject();
        $oViewName = $oBaseObject->getViewName();
        $sQ = "select * from {$oViewName} where oxtype=3 and " . $oBaseObject->getSqlActiveSnippet()
              . " and oxshopid='" . \OxidEsales\Eshop\Core\Registry::getConfig()->getShopId() . "' " . $this->_getUserGroupFilter()
              . " order by oxsort";
        $this->selectString($sQ);
    }
746489
def load(self):
        
        cl_tmp = self.api.list(self.objName, limit=self.searchLimit).values()
        cl = []
        for i in cl_tmp:
            cl.extend(i)
        return {x[self.index]: ItemPuppetClass(self.api, x['id'],
                                               self.objName, self.payloadObj,
                                               x)
                for x in cl}
969742
function renderItemsByFolderId(id) {
        resourceDetail.hide();
        resourcesList.show();
        folderId = id;
        urls["getResources"] = urls["getResources"] || getURL("getResources");
        var options = {
            url:urls["getResources"] + '/' + id,
            data:{mode:"exclusive", noClientScript:true},
            success:function (data) {
                resourcesList.html(data);
                var items = resourcesList.find("li");
                items.click(handleItemClick);
                _.each(items, function (item) {
                    attachMenu($(item));
                });

            }
        };
        Rocket.ajax(options);
    }
597261
public function getActiveShopHost()
    {
        $shopUrl = \OxidEsales\Eshop\Core\Registry::getConfig()->getShopUrl();

        return $this->extractHost($shopUrl);
    }
323453
def get_gallery_item_list(self, folder_name, skip=None, count=None, scope='content/read'):
        

        params = {}
        if skip:
            params['skip'] = skip
        if count:
            params['count'] = count

        qs = '?' + urllib.urlencode(params) if params else ''

        folder_item_list = _get(
            token=self.oauth.get_user_token(scope),
            uri='/user/media/list/' + urllib.quote(folder_name) + qs
        )
        try:
            return json.loads(folder_item_list)
        except:
            raise MxitAPIException('Error parsing gallery folder list')
356267
public function actionAdd() 
	{
		$setting = BannerSetting::model()->findByPk(1, array(
			'select' => 'banner_file_type',
		));
		$banner_file_type = unserialize($setting->banner_file_type);
		if(empty($banner_file_type))
			$banner_file_type = array();
		
		$model=new Banners;

		// Uncomment the following line if AJAX validation is needed
		$this->performAjaxValidation($model);

		if(isset($_POST['Banners'])) {
			$model->attributes=$_POST['Banners'];

			if($model->save()) {
				Yii::app()->user->setFlash('success', Yii::t('phrase', 'Banner success created.'));
				$this->redirect(array('manage'));
			}
		}

		$this->pageTitle = Yii::t('phrase', 'Create Banner');
		$this->pageDescription = '';
		$this->pageMeta = '';
		$this->render('admin_add', array(
			'model'=>$model,
			'banner_file_type'=>$banner_file_type,
		));
	}
668515
function(index) {
        links[currentTrack].classList.remove('active');
        currentTrack = index;
        links[currentTrack].classList.add('active');
        wavesurfer.load(links[currentTrack].href);
    }
820928
function changedActiveItems(item) {
  if (!defined(item._dataflowUrl)) {
    // All the data is already here, just update the total columns.
    var shownDimensionCombinations = calculateShownDimensionCombinations(
      item,
      item._fullDimensions
    );
    var columns = item._tableStructure.columns.slice(
      0,
      shownDimensionCombinations.ids.length + item._numberOfInitialColumns
    );
    if (columns.length > 0) {
      columns = columns.concat(
        buildTotalSelectedColumn(item, shownDimensionCombinations)
      );
      updateColumns(item, columns);
    }
    return when();
  } else {
    // Get the URL for the data request, and load & build the appropriate table.
    var activeConceptIds = calculateActiveConceptIds(item);
    var dimensionRequestString = calculateDimensionRequestString(
      item,
      activeConceptIds,
      item._fullDimensions
    );
    if (!defined(dimensionRequestString)) {
      return; // No value for a dimension, so ignore.
    }
    return loadAndBuildTable(item, dimensionRequestString);
  }
}
581616
public function loadManufacturerList()
    {
        $oBaseObject = $this->getBaseObject();

        $sFieldList = $oBaseObject->getSelectFields();
        $sViewName = $oBaseObject->getViewName();
        $this->getBaseObject()->setShowArticleCnt($this->_blShowManufacturerArticleCnt);

        $sWhere = '';
        if (!$this->isAdmin()) {
            $sWhere = $oBaseObject->getSqlActiveSnippet();
            $sWhere = $sWhere ? " where $sWhere and " : ' where ';
            $sWhere .= "{$sViewName}.oxtitle != '' ";
        }

        $sSelect = "select {$sFieldList} from {$sViewName} {$sWhere} order by {$sViewName}.oxtitle";
        $this->selectString($sSelect);
    }
903675
function loadDecorList() {
  $.getScript( jsPath+"portal-ng-decor.js" )
    .done(
      function( script, textStatus ) {
        log( 'loadDecorList', textStatus );
        ajaxOngoing--;
      }
    )
    .fail(
      function( jqxhr, settings, exception ) {
        logErr( 'loadDecorList', exception );
        ajaxOngoing--;
      }
    );
}
865680
def load_plugins(self, args=None):
        """"""
        for item in os.listdir(plugins_path):
            if (item.startswith(self.header) and
                    item.endswith(".py") and
                    item != (self.header + "plugin.py")):
                # Load the plugin
                self._load_plugin(os.path.basename(item),
                                  args=args, config=self.config)

        # Log plugins list
        logger.debug("Active plugins list: {}".format(self.getPluginsList()))
1079699
def index
      @banners = Banner.all
  
      respond_to do |format|
        format.html # index.html.erb
        format.json { render :json => @banners }
      end
    end
668692
def list_shops(self, page_index=1, page_size=20):
        
        res = self._post(
            'shop/list',
            data={
                'pageindex': page_index,
                'pagesize': page_size,
            },
            result_processor=lambda x: x['data']
        )
        return res
758600
function load( available, toLoad ) {
    let loadList = available;
    if ('string' === typeof toLoad ) {
      loadList = [toLoad];
    }
    if (Array.isArray(toLoad)) {
      loadList = toLoad;
    }
    loadList.forEach(function( name ) {
      if ( available.indexOf(name) < 0 ) {
        return;
      }
      require('./'+name);
    });
  }
746882
protected function loadItems()
    {
        $items = $this->eventAccessObjectBackend->loadObject();
        if (!is_array($items)) {
            $items = array();
        }
        
        $this->items = $items;
    }
888837
protected function LoadArticleList()
    {
        if (is_null($this->oList)) {
            $iListIdent = $this->global->GetUserData(TdbShopArticleList::URL_LIST_KEY_NAME);
            if ($iListIdent) {
                $this->oList = TdbShopArticleList::GetInstanceFromSession($iListIdent);
            }
            if (is_null($this->oList)) {
                $oActiveCategory = self::GetActiveCategory();
                /** @var $oActiveCategory TdbShopCategory */
                $sOrderListBy = $this->GetActiveOrderByString($this->iActiveShopModuleArticlelistOrderbyId);
                if (!is_null($oActiveCategory)) {
                    if ($this->oModuleConf->fieldShowSubcategoryProducts) {
                        $this->oList = $oActiveCategory->GetArticleListIncludingSubcategories($sOrderListBy, $this->aFilter);
                    } else {
                        $this->oList = $oActiveCategory->GetArticleList($sOrderListBy, $this->aFilter);
                    }
                } else {
                    $this->oList = $this->getListWhenNoCategoryDefined($sOrderListBy, $this->aFilter);
                }
            }

            $this->PostLoadArticleListHook();

            if (!is_null($this->oList)) {
                $this->oList->RestorePagingInfoFromSession($this->iPageSize * $this->iPage, $this->iPageSize);

                $sRequest = $this->global->GetUserData(TdbShopArticleList::URL_LIST_REQUEST);
                $this->oList->HandleURLRequest($sRequest, true);
            }
        }
    }
145035
def loadItems(self, excludeRead=False, loadLimit=20, since=None, until=None):
        
        self.clearItems()
        self.loadtLoadOk    = False
        self.lastLoadLength = 0
        self._itemsLoadedDone(self._getContent(excludeRead, None, loadLimit, since, until))