本文整理汇总了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();
}
示例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();
}
示例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();
}