本文整理汇总了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);
}
示例2: update
static function update()
{
// force regeneration of cache files following #648
Piwik::setUserIsSuperUser();
$allSiteIds = Piwik_SitesManager_API::getAllSitesId();
Piwik_Common::regenerateCacheWebsiteAttributes($allSiteIds);
}
示例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);
}
示例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);
}
示例5:
<?php
// force regeneration of cache files following #648
Piwik::setUserIsSuperUser();
$allSiteIds = Piwik_SitesManager_API::getAllSitesId();
Piwik_Common::regenerateCacheWebsiteAttributes($allSiteIds);
示例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);
}
示例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);
}
示例8: postUpdateWebsite
private static function postUpdateWebsite($idSite)
{
Piwik_Common::regenerateCacheWebsiteAttributes($idSite);
}
示例9: postUpdateWebsite
private function postUpdateWebsite($idSite)
{
Piwik_Site::clearCache();
Piwik_Common::regenerateCacheWebsiteAttributes($idSite);
}
示例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);
}
}