當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。