當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Piwik_Common::regenerateCacheWebsiteAttributes方法代碼示例

本文整理匯總了PHP中Piwik_Common::regenerateCacheWebsiteAttributes方法的典型用法代碼示例。如果您正苦於以下問題:PHP Piwik_Common::regenerateCacheWebsiteAttributes方法的具體用法?PHP Piwik_Common::regenerateCacheWebsiteAttributes怎麽用?PHP Piwik_Common::regenerateCacheWebsiteAttributes使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Piwik_Common的用法示例。


在下文中一共展示了Piwik_Common::regenerateCacheWebsiteAttributes方法的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: update

	static function update()
	{
		$obsoleteFiles = array(
			PIWIK_INCLUDE_PATH . '/core/Db/Mysqli.php',
		);
		foreach($obsoleteFiles as $obsoleteFile)
		{
			if(file_exists($obsoleteFile))
			{
				@unlink($obsoleteFile);
			}
		}

		$obsoleteDirectories = array(
			PIWIK_INCLUDE_PATH . '/core/Db/Pdo',
		);
		foreach($obsoleteDirectories as $dir)
		{
			if(file_exists($dir))
			{
				Piwik::unlinkRecursive($dir, true);
			}
		}

		// force regeneration of cache files
		Piwik::setUserIsSuperUser();
		$allSiteIds = Piwik_SitesManager_API::getInstance()->getAllSitesId();
		Piwik_Common::regenerateCacheWebsiteAttributes($allSiteIds);
	}
開發者ID:BackupTheBerlios,項目名稱:oos-svn,代碼行數:29,代碼來源:0.6.2.php

示例2: update

 static function update()
 {
     // force regeneration of cache files following #648
     Piwik::setUserIsSuperUser();
     $allSiteIds = Piwik_SitesManager_API::getAllSitesId();
     Piwik_Common::regenerateCacheWebsiteAttributes($allSiteIds);
 }
開發者ID:BackupTheBerlios,項目名稱:oos-svn,代碼行數:7,代碼來源:0.2.34.php

示例3: deleteGoal

 public function deleteGoal($idSite, $idGoal)
 {
     Piwik::checkUserHasAdminAccess($idSite);
     Piwik_Query("UPDATE " . Piwik::prefixTable('goal') . "\n\t\t\t\t\t\t\t\t\t\tSET deleted = 1\n\t\t\t\t\t\t\t\t\t\tWHERE idsite = ? \n\t\t\t\t\t\t\t\t\t\t\tAND idgoal = ?", array($idSite, $idGoal));
     Zend_Registry::get('db')->query("DELETE FROM " . Piwik::prefixTable("log_conversion") . " WHERE idgoal = ?", $idGoal);
     Piwik_Common::regenerateCacheWebsiteAttributes($idSite);
 }
開發者ID:BackupTheBerlios,項目名稱:oos-svn,代碼行數:7,代碼來源:API.php

示例4: deleteGoal

 public function deleteGoal($idSite, $idGoal)
 {
     Piwik::checkUserHasAdminAccess($idSite);
     $where[] = 'idsite = ' . Zend_Registry::get('db')->quote($idSite);
     $where[] = 'idgoal = ' . Zend_Registry::get('db')->quote($idGoal);
     Zend_Registry::get('db')->update(Piwik::prefixTable('goal'), array('deleted' => 1), $where);
     Zend_Registry::get('db')->delete(Piwik::prefixTable("log_conversion"), "idgoal={$idGoal}");
     Piwik_Common::regenerateCacheWebsiteAttributes($idSite);
 }
開發者ID:klando,項目名稱:pgpiwik,代碼行數:9,代碼來源:API.php

示例5:

<?php

// force regeneration of cache files following #648
Piwik::setUserIsSuperUser();
$allSiteIds = Piwik_SitesManager_API::getAllSitesId();
Piwik_Common::regenerateCacheWebsiteAttributes($allSiteIds);
開發者ID:BackupTheBerlios,項目名稱:oos-svn,代碼行數:6,代碼來源:0.2.34.php

示例6: deleteFunnel

 public function deleteFunnel($idSite, $idGoal, $idFunnel)
 {
     Piwik::checkUserHasAdminAccess($idSite);
     Piwik_Query("UPDATE " . Piwik_Common::prefixTable('funnel') . "\n\t\t\t\t\t\t\t\t\t\tSET deleted = 1\n\t\t\t\t\t\t\t\t\t\tWHERE idsite = ? \n\t\t\t\t\t\t\t\t\t\tAND idgoal = ?\n\t\t\t\t\t\t\t\t\t\tAND idfunnel = ?", array($idSite, $idGoal, $idFunnel));
     Piwik_Common::regenerateCacheWebsiteAttributes($idSite);
 }
開發者ID:ep123,項目名稱:funnels,代碼行數:6,代碼來源:API.php

示例7: deleteGoal

 /**
  * Soft deletes a given Goal.
  * Stats data in the archives will still be recorded, but not displayed.
  * 
  * @param int $idSite
  * @param int $idGoal
  * @return void
  */
 public function deleteGoal($idSite, $idGoal)
 {
     Piwik::checkUserHasAdminAccess($idSite);
     Piwik_Query("UPDATE " . Piwik_Common::prefixTable('goal') . "\n\t\t\t\t\t\t\t\t\t\tSET deleted = 1\n\t\t\t\t\t\t\t\t\t\tWHERE idsite = ? \n\t\t\t\t\t\t\t\t\t\t\tAND idgoal = ?", array($idSite, $idGoal));
     Piwik_DeleteAllRows(Piwik_Common::prefixTable("log_conversion"), "WHERE idgoal = ?", 100000, array($idGoal));
     Piwik_Common::regenerateCacheWebsiteAttributes($idSite);
 }
開發者ID:nnnnathann,項目名稱:piwik,代碼行數:15,代碼來源:API.php

示例8: postUpdateWebsite

 private static function postUpdateWebsite($idSite)
 {
     Piwik_Common::regenerateCacheWebsiteAttributes($idSite);
 }
開發者ID:BackupTheBerlios,項目名稱:oos-svn,代碼行數:4,代碼來源:API.php

示例9: postUpdateWebsite

	private function postUpdateWebsite($idSite)
	{
		Piwik_Site::clearCache();
		Piwik_Common::regenerateCacheWebsiteAttributes($idSite);
	}
開發者ID:BackupTheBerlios,項目名稱:oos-svn,代碼行數:5,代碼來源:API.php

示例10: setParameters

 /** Save search url and parameter names */
 private function setParameters($data)
 {
     $db = Zend_Registry::get('db');
     foreach ($data as $idsite => $siteData) {
         $db->update(Piwik_Common::prefixTable('site'), array('sitesearch_parameter' => $siteData['parameter'], 'sitesearch_url' => $siteData['url']), 'idsite = ' . intval($idsite));
         if (isset($siteData['analyze']) && $siteData['analyze'] == 1) {
             $this->analyzeSite($idsite);
         }
         Piwik_Common::regenerateCacheWebsiteAttributes($idsite);
     }
 }
開發者ID:BeezyT,項目名稱:piwik-sitesearch,代碼行數:12,代碼來源:Controller.php


注:本文中的Piwik_Common::regenerateCacheWebsiteAttributes方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。