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


PHP Tracker::getTrackersSelect方法代码示例

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


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

示例1: procede

 public function procede()
 {
     $aStats = Stats::getGlobalStats();
     $this->oView->addData('textItems', $aStats);
     $this->oView->addData('trackers', Tracker::getTrackersSelect());
     $this->oView->Create();
 }
开发者ID:Jatax,项目名称:TKS,代码行数:7,代码来源:stats.controller.php

示例2: createView

 private function createView()
 {
     $this->oView->addData('titre', Language::translate('RSS_ADMIN_TABLE_TITLE'));
     $oTable = new TableGenerator();
     $oTable->setId(md5('rss'));
     $oTable->addColumn(Language::translate('RSS_ADMIN_TABLE_TRACKER'));
     $oTable->addColumn(Language::translate('RSS_ADMIN_TABLE_URL'));
     $oTable->addColumn(Language::translate('RSS_ADMIN_TABLE_ENCODE'));
     $oTable->addColumn(Language::translate('RSS_ADMIN_TABLE_DATE'));
     $oTable->addColumn(Language::translate('RSS_ADMIN_TABLE_MASK'));
     $oTable->addColumn('');
     $aRss = Rss::getFlux();
     $aTrackers = Tracker::getTrackersSelect();
     $aCategories = Categorie::getCategoriesSelect();
     foreach ($aRss as $oRss) {
         $oTable->addLine(array($aTrackers[$oRss->getTrackerId()], $this->createUrlPopup($oRss), $oRss->getEncoding(), $oRss->isForcedate() ? Language::translate('RSS_ADMIN_TABLE_SERVER') : Language::translate('RSS_ADMIN_TABLE_RSS'), $this->createMaskPopup($oRss), $this->createEditPopup($oRss, $aTrackers, $aCategories)));
     }
     $oTable->setBottom($this->createAddPopup($aTrackers, $aCategories));
     $oTable->create();
     $this->oView->addData('content', $oTable->getCode());
     $this->oView->create();
 }
开发者ID:Jatax,项目名称:TKS,代码行数:22,代码来源:adminrss.controller.php

示例3: createView

 /**
  * Créer la page
  */
 private function createView()
 {
     //Affichage des passkeys
     $this->oView->addData('pk_titre', 'Mes passkeys');
     //Construction du tableau
     $oTable = new TableGenerator();
     $oTable->setId(md5('Mes passkeys'));
     $oTable->addColumn('Tracker');
     $oTable->addColumn('Passkey');
     $oTable->addColumn('');
     $aPasskeys = Passkey::getUserPasskeys($this->oCurrentUser->getId());
     $aTrackers = Tracker::getTrackersSelect();
     foreach ($aPasskeys as $oPasskey) {
         $oTable->addLine(array($oPasskey->getTrackerName(), $oPasskey->getPasskey(), $this->createPkEditPopup($oPasskey)));
     }
     $oTable->setBottom($this->createPkAddPopup($aTrackers));
     $oTable->create();
     $this->oView->addData('pk_content', $oTable->getCode());
     //Affichage RSS
     $oPurgeButton = new View('minibutton');
     $oPurgeButton->addData('link', 'index.php?p=profil&a=purge');
     $oPurgeButton->addData('icon', 'fa-trash-o');
     $oPurgeButton->addData('style', 'danger');
     $oPurgeButton->create();
     $this->oView->addData('rss_titre', 'Mes flux RSS');
     $this->oView->addData('rss_link', Config::get('installdir') . 'rss.php?cat=autoget&pk=' . $this->oCurrentUser->getPasskey());
     $this->oView->addData('rss_purge', $oPurgeButton->getCode());
     $aFlux = array();
     $aFlux[] = array("name" => "Général", "link" => Config::get('installdir') . 'rss.php?pk=' . $this->oCurrentUser->getPasskey());
     $aCategories = Categorie::getCategories();
     foreach ($aCategories as $oCategorie) {
         $aFlux[] = array("name" => $oCategorie->getName(), "link" => Config::get('installdir') . 'rss.php?cat=' . $oCategorie->getId() . '&pk=' . $this->oCurrentUser->getPasskey());
     }
     $this->oView->addData('rss_flux', $aFlux);
     $this->oView->addData('rss_passkey', $this->oCurrentUser->getPasskey());
     $this->oView->Create();
 }
开发者ID:Jatax,项目名称:TKS,代码行数:40,代码来源:profil.controller.php


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