当前位置: 首页>>代码示例>>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;未经允许,请勿转载。