diff options
author | robocoder <anthon.pang@gmail.com> | 2009-06-28 09:59:07 +0400 |
---|---|---|
committer | robocoder <anthon.pang@gmail.com> | 2009-06-28 09:59:07 +0400 |
commit | e3c66a37970b807931a87fdde10da01eab82480c (patch) | |
tree | 5a1f7bcd6aacf630d810a2ff84116db6477d5f2c /core | |
parent | c5705b4a75325edda959f6f9f4f852b1102e5396 (diff) |
Fixes #524 - add standard Piwik header to .php files in core & plugins, with
the exception of those in core/Updates/.
git-svn-id: http://dev.piwik.org/svn/trunk@1259 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'core')
36 files changed, 317 insertions, 17 deletions
diff --git a/core/API/DataTableGenericFilter.php b/core/API/DataTableGenericFilter.php index 59e616e1ee..ddf19b2923 100644 --- a/core/API/DataTableGenericFilter.php +++ b/core/API/DataTableGenericFilter.php @@ -1,4 +1,13 @@ <?php +/** + * Piwik - Open source web analytics + * + * @link http://piwik.org + * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later + * @version $Id$ + * + * @package Piwik_API + */ class Piwik_API_DataTableGenericFilter { diff --git a/core/API/DocumentationGenerator.php b/core/API/DocumentationGenerator.php index 3e0a6bbd2d..8a4c11d1ec 100644 --- a/core/API/DocumentationGenerator.php +++ b/core/API/DocumentationGenerator.php @@ -1,4 +1,13 @@ <?php +/** + * Piwik - Open source web analytics + * + * @link http://piwik.org + * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later + * @version $Id$ + * + * @package Piwik_API + */ class Piwik_API_DocumentationGenerator { diff --git a/core/API/ResponseBuilder.php b/core/API/ResponseBuilder.php index 4401f5136e..0f37d50cac 100644 --- a/core/API/ResponseBuilder.php +++ b/core/API/ResponseBuilder.php @@ -1,4 +1,13 @@ <?php +/** + * Piwik - Open source web analytics + * + * @link http://piwik.org + * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later + * @version $Id: $ + * + * @package Piwik_API + */ class Piwik_API_ResponseBuilder { diff --git a/core/Archive/Array/IndexedByDate.php b/core/Archive/Array/IndexedByDate.php index 3a84e30089..437bdee093 100644 --- a/core/Archive/Array/IndexedByDate.php +++ b/core/Archive/Array/IndexedByDate.php @@ -1,4 +1,14 @@ <?php +/** + * Piwik - Open source web analytics + * + * @link http://piwik.org + * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later + * @version $Id: $ + * + * @package Piwik_Archive + */ + require_once "Archive/Array.php"; class Piwik_Archive_Array_IndexedByDate extends Piwik_Archive_Array diff --git a/core/Archive/Array/IndexedBySite.php b/core/Archive/Array/IndexedBySite.php index 36882d0923..a933249b83 100644 --- a/core/Archive/Array/IndexedBySite.php +++ b/core/Archive/Array/IndexedBySite.php @@ -1,4 +1,14 @@ <?php +/** + * Piwik - Open source web analytics + * + * @link http://piwik.org + * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later + * @version $Id: $ + * + * @package Piwik_Archive + */ + require_once "Archive/Array.php"; class Piwik_Archive_Array_IndexedBySite extends Piwik_Archive_Array diff --git a/core/DataTable/Filter/AddColumnsWhenShowAllColumns.php b/core/DataTable/Filter/AddColumnsWhenShowAllColumns.php index 75f13adc56..83e9ecfb85 100644 --- a/core/DataTable/Filter/AddColumnsWhenShowAllColumns.php +++ b/core/DataTable/Filter/AddColumnsWhenShowAllColumns.php @@ -1,4 +1,14 @@ <?php +/** + * Piwik - Open source web analytics + * + * @link http://piwik.org + * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later + * @version $Id$ + * + * @package Piwik_DataTable + */ + class Piwik_DataTable_Filter_AddColumnsWhenShowAllColumns extends Piwik_DataTable_Filter { protected $roundPrecision = 1; diff --git a/core/DataTable/Filter/ColumnCallbackAddColumnPercentage.php b/core/DataTable/Filter/ColumnCallbackAddColumnPercentage.php index 4ac7096344..23dcf412fa 100644 --- a/core/DataTable/Filter/ColumnCallbackAddColumnPercentage.php +++ b/core/DataTable/Filter/ColumnCallbackAddColumnPercentage.php @@ -1,5 +1,15 @@ <?php /** + * Piwik - Open source web analytics + * + * @link http://piwik.org + * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later + * @version $Id: $ + * + * @package Piwik_DataTable + */ + +/** * Add a new column to the table which is a percentage based on the value resulting * from a callback function with the parameter being another column's value * diff --git a/core/Mail.php b/core/Mail.php index db12d4eaf1..d9702c0f73 100644 --- a/core/Mail.php +++ b/core/Mail.php @@ -4,7 +4,7 @@ * * @link http://piwik.org * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later - * @version $Id$ + * @version $Id: $ * * @package Piwik */ diff --git a/core/Option.php b/core/Option.php index a1d13fda2e..355b7049c6 100644 --- a/core/Option.php +++ b/core/Option.php @@ -1,5 +1,15 @@ <?php /** + * Piwik - Open source web analytics + * + * @link http://piwik.org + * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later + * @version $Id: $ + * + * @package Piwik + */ + +/** * Piwik_Option provides a very simple mechanism to save/retrieve key-values pair * from the database (persistent key-value datastore). * diff --git a/core/Period/Day.php b/core/Period/Day.php index 9f790ccd91..69e2bdd89e 100644 --- a/core/Period/Day.php +++ b/core/Period/Day.php @@ -1,9 +1,14 @@ <?php - /** + * Piwik - Open source web analytics + * + * @link http://piwik.org + * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later + * @version $Id: $ * * @package Piwik_Period */ + class Piwik_Period_Day extends Piwik_Period { protected $label = 'day'; diff --git a/core/Period/Month.php b/core/Period/Month.php index 0fc7cad553..1555c0d879 100644 --- a/core/Period/Month.php +++ b/core/Period/Month.php @@ -1,8 +1,14 @@ <?php /** + * Piwik - Open source web analytics + * + * @link http://piwik.org + * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later + * @version $Id: $ * * @package Piwik_Period */ + class Piwik_Period_Month extends Piwik_Period { protected $label = 'month'; diff --git a/core/Period/Range.php b/core/Period/Range.php index 96df975c53..5dbe2b6c83 100644 --- a/core/Period/Range.php +++ b/core/Period/Range.php @@ -1,4 +1,13 @@ <?php +/** + * Piwik - Open source web analytics + * + * @link http://piwik.org + * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later + * @version $Id: $ + * + * @package Piwik_Period + */ /** * from a starting date to an ending date diff --git a/core/Period/Week.php b/core/Period/Week.php index f309701891..f881287c95 100644 --- a/core/Period/Week.php +++ b/core/Period/Week.php @@ -1,9 +1,14 @@ <?php - /** + * Piwik - Open source web analytics + * + * @link http://piwik.org + * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later + * @version $Id: $ * * @package Piwik_Period */ + class Piwik_Period_Week extends Piwik_Period { protected $label = 'week'; diff --git a/core/Period/Year.php b/core/Period/Year.php index 0c994e1847..673d96dbf2 100644 --- a/core/Period/Year.php +++ b/core/Period/Year.php @@ -1,10 +1,16 @@ <?php - -require_once "Period/Month.php"; /** + * Piwik - Open source web analytics + * + * @link http://piwik.org + * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later + * @version $Id: $ * * @package Piwik_Period */ + +require_once "Period/Month.php"; + class Piwik_Period_Year extends Piwik_Period { protected $label = 'year'; diff --git a/core/PluginsFunctions/AdminMenu.php b/core/PluginsFunctions/AdminMenu.php index fddb67c5ea..481114b45a 100644 --- a/core/PluginsFunctions/AdminMenu.php +++ b/core/PluginsFunctions/AdminMenu.php @@ -1,4 +1,14 @@ <?php +/** + * Piwik - Open source web analytics + * + * @link http://piwik.org + * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later + * @version $Id: $ + * + * @package Piwik + */ + function Piwik_GetAdminMenu() { return Piwik_AdminMenu::getInstance()->get(); diff --git a/core/PluginsFunctions/Menu.php b/core/PluginsFunctions/Menu.php index 42f5817cae..584e99d373 100644 --- a/core/PluginsFunctions/Menu.php +++ b/core/PluginsFunctions/Menu.php @@ -1,4 +1,14 @@ <?php +/** + * Piwik - Open source web analytics + * + * @link http://piwik.org + * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later + * @version $Id: $ + * + * @package Piwik + */ + function Piwik_GetMenu() { return Piwik_Menu::getInstance()->get(); diff --git a/core/PluginsFunctions/Sql.php b/core/PluginsFunctions/Sql.php index b2d066b1ee..f1512f0b91 100644 --- a/core/PluginsFunctions/Sql.php +++ b/core/PluginsFunctions/Sql.php @@ -1,5 +1,15 @@ <?php /** + * Piwik - Open source web analytics + * + * @link http://piwik.org + * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later + * @version $Id: $ + * + * @package Piwik + */ + +/** * Executes a SQL query on the DB and returns the Zend_Db_Statement object * If you want to fetch data from the DB you should use the function Piwik_FetchAll() * diff --git a/core/PluginsFunctions/WidgetsList.php b/core/PluginsFunctions/WidgetsList.php index e8339543f7..d26bce86b6 100644 --- a/core/PluginsFunctions/WidgetsList.php +++ b/core/PluginsFunctions/WidgetsList.php @@ -1,4 +1,14 @@ <?php +/** + * Piwik - Open source web analytics + * + * @link http://piwik.org + * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later + * @version $Id: $ + * + * @package Piwik + */ + function Piwik_GetWidgetsList() { return Piwik_WidgetsList::get(); diff --git a/core/Smarty.php b/core/Smarty.php index f4faba4ed3..3697624c68 100644 --- a/core/Smarty.php +++ b/core/Smarty.php @@ -1,4 +1,14 @@ <?php +/** + * Piwik - Open source web analytics + * + * @link http://piwik.org + * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later + * @version $Id$ + * + * @package Piwik + */ + require_once "Smarty/Smarty.class.php"; class Piwik_Smarty extends Smarty { diff --git a/core/SmartyPlugins/function.assignTopBar.php b/core/SmartyPlugins/function.assignTopBar.php index 572d709f54..aad1fc1459 100644 --- a/core/SmartyPlugins/function.assignTopBar.php +++ b/core/SmartyPlugins/function.assignTopBar.php @@ -1,6 +1,17 @@ <?php /** - * Enter description here... + * Piwik - Open source web analytics + * + * @link http://piwik.org + * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later + * @version $Id: $ + * + * @package SmartyPlugins + */ + +/** + * Smarty {assignTopBar} function plugin. + * Initialize top nav bar text and links. * * @param array $params * @param Smarty $smarty diff --git a/core/SmartyPlugins/function.loadJavascriptTranslations.php b/core/SmartyPlugins/function.loadJavascriptTranslations.php index bd1a7fc634..1421219c65 100644 --- a/core/SmartyPlugins/function.loadJavascriptTranslations.php +++ b/core/SmartyPlugins/function.loadJavascriptTranslations.php @@ -1,4 +1,13 @@ <?php +/** + * Piwik - Open source web analytics + * + * @link http://piwik.org + * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later + * @version $Id: $ + * + * @package SmartyPlugins + */ /** * Load translation strings suffixed with _js for a given list of modules. diff --git a/core/SmartyPlugins/modifier.escape.php b/core/SmartyPlugins/modifier.escape.php index 9108ef6612..8d210e3a5e 100644 --- a/core/SmartyPlugins/modifier.escape.php +++ b/core/SmartyPlugins/modifier.escape.php @@ -1,11 +1,14 @@ <?php /** - * Smarty plugin - * @package Smarty - * @subpackage plugins + * Piwik - Open source web analytics + * + * @link http://piwik.org + * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later + * @version $Id: $ + * + * @package SmartyPlugins */ - /** * Smarty escape modifier plugin * @@ -90,5 +93,3 @@ function smarty_modifier_escape($string, $esc_type = 'html', $char_set = 'ISO-88 } /* vim: set expandtab: */ - -?> diff --git a/core/SmartyPlugins/outputfilter.cachebuster.php b/core/SmartyPlugins/outputfilter.cachebuster.php index 73ee38a2cb..ad3778a020 100644 --- a/core/SmartyPlugins/outputfilter.cachebuster.php +++ b/core/SmartyPlugins/outputfilter.cachebuster.php @@ -1,8 +1,12 @@ <?php /** - * Smarty plugin - * @package Smarty - * @subpackage plugins + * Piwik - Open source web analytics + * + * @link http://piwik.org + * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later + * @version $Id: $ + * + * @package SmartyPlugins */ /** diff --git a/core/Tracker/GoalManager.php b/core/Tracker/GoalManager.php index d0d194aedb..4815936b03 100644 --- a/core/Tracker/GoalManager.php +++ b/core/Tracker/GoalManager.php @@ -1,4 +1,13 @@ <?php +/** + * Piwik - Open source web analytics + * + * @link http://piwik.org + * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later + * @version $Id$ + * + * @package Piwik_Tracker + */ class Piwik_Tracker_GoalManager { diff --git a/core/UpdateCheck.php b/core/UpdateCheck.php index eb10142113..6f0d56c9ea 100644 --- a/core/UpdateCheck.php +++ b/core/UpdateCheck.php @@ -1,4 +1,13 @@ <?php +/** + * Piwik - Open source web analytics + * + * @link http://piwik.org + * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later + * @version $Id$ + * + * @package Piwik + */ class Piwik_UpdateCheck { diff --git a/core/Updater.php b/core/Updater.php index 320c3b637b..8b8913b6b4 100644 --- a/core/Updater.php +++ b/core/Updater.php @@ -1,4 +1,14 @@ <?php +/** + * Piwik - Open source web analytics + * + * @link http://piwik.org + * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later + * @version $Id: $ + * + * @package Piwik + */ + require_once "Option.php"; class Piwik_Updater diff --git a/core/Version.php b/core/Version.php index 1173ead5d2..527eb9170c 100644 --- a/core/Version.php +++ b/core/Version.php @@ -1,4 +1,13 @@ <?php +/** + * Piwik - Open source web analytics + * + * @link http://piwik.org + * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later + * @version $Id: $ + * + * @package Piwik + */ final class Piwik_Version { const VERSION = '0.4.1'; diff --git a/core/ViewDataTable/GenerateGraphData/ChartEvolution.php b/core/ViewDataTable/GenerateGraphData/ChartEvolution.php index 6e950a1ada..f8380cfd1a 100644 --- a/core/ViewDataTable/GenerateGraphData/ChartEvolution.php +++ b/core/ViewDataTable/GenerateGraphData/ChartEvolution.php @@ -1,4 +1,14 @@ <?php +/** + * Piwik - Open source web analytics + * + * @link http://piwik.org + * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later + * @version $Id: $ + * + * @package Piwik_ViewDataTable + */ + require_once "ViewDataTable/GenerateGraphData.php"; /** * Piwik_ViewDataTable_GenerateGraphData for the Evolution graph (eg. Last 30 days visits) using Piwik_Visualization_Chart_Evolution diff --git a/core/ViewDataTable/GenerateGraphData/ChartPie.php b/core/ViewDataTable/GenerateGraphData/ChartPie.php index b225e0d83d..aee24ea90a 100644 --- a/core/ViewDataTable/GenerateGraphData/ChartPie.php +++ b/core/ViewDataTable/GenerateGraphData/ChartPie.php @@ -1,4 +1,14 @@ <?php +/** + * Piwik - Open source web analytics + * + * @link http://piwik.org + * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later + * @version $Id: $ + * + * @package Piwik_ViewDataTable + */ + require_once "ViewDataTable/GenerateGraphData.php"; /** * Piwik_ViewDataTable_GenerateGraphData for the pie chart, using Piwik_Visualization_Chart_Pie diff --git a/core/ViewDataTable/GenerateGraphData/ChartVerticalBar.php b/core/ViewDataTable/GenerateGraphData/ChartVerticalBar.php index bc0d28cf0f..070e2fe68a 100644 --- a/core/ViewDataTable/GenerateGraphData/ChartVerticalBar.php +++ b/core/ViewDataTable/GenerateGraphData/ChartVerticalBar.php @@ -1,4 +1,14 @@ <?php +/** + * Piwik - Open source web analytics + * + * @link http://piwik.org + * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later + * @version $Id: $ + * + * @package Piwik_ViewDataTable + */ + require_once "ViewDataTable/GenerateGraphData.php"; /** * Piwik_ViewDataTable_GenerateGraphData for the vertical bar graph, using Piwik_Visualization_Chart_VerticalBar diff --git a/core/ViewDataTable/GenerateGraphHTML/ChartEvolution.php b/core/ViewDataTable/GenerateGraphHTML/ChartEvolution.php index 8729a452f4..ffbf053178 100644 --- a/core/ViewDataTable/GenerateGraphHTML/ChartEvolution.php +++ b/core/ViewDataTable/GenerateGraphHTML/ChartEvolution.php @@ -1,4 +1,14 @@ <?php +/** + * Piwik - Open source web analytics + * + * @link http://piwik.org + * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later + * @version $Id: $ + * + * @package Piwik_ViewDataTable + */ + require_once "ViewDataTable/GenerateGraphHTML.php"; /** * Generates HTML embed for the Evolution graph diff --git a/core/ViewDataTable/GenerateGraphHTML/ChartPie.php b/core/ViewDataTable/GenerateGraphHTML/ChartPie.php index 6e94e998cf..23aa0a5106 100644 --- a/core/ViewDataTable/GenerateGraphHTML/ChartPie.php +++ b/core/ViewDataTable/GenerateGraphHTML/ChartPie.php @@ -1,4 +1,14 @@ <?php +/** + * Piwik - Open source web analytics + * + * @link http://piwik.org + * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later + * @version $Id: $ + * + * @package Piwik_ViewDataTable + */ + require_once "ViewDataTable/GenerateGraphHTML.php"; /** * Generates HTML embed for the Pie chart diff --git a/core/ViewDataTable/GenerateGraphHTML/ChartVerticalBar.php b/core/ViewDataTable/GenerateGraphHTML/ChartVerticalBar.php index 3cf13bc557..d54fff44cb 100644 --- a/core/ViewDataTable/GenerateGraphHTML/ChartVerticalBar.php +++ b/core/ViewDataTable/GenerateGraphHTML/ChartVerticalBar.php @@ -1,4 +1,14 @@ <?php +/** + * Piwik - Open source web analytics + * + * @link http://piwik.org + * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later + * @version $Id: $ + * + * @package Piwik_ViewDataTable + */ + require_once "ViewDataTable/GenerateGraphHTML.php"; /** * diff --git a/core/ViewDataTable/HtmlTable/AllColumns.php b/core/ViewDataTable/HtmlTable/AllColumns.php index 2efdfbf129..b540371712 100644 --- a/core/ViewDataTable/HtmlTable/AllColumns.php +++ b/core/ViewDataTable/HtmlTable/AllColumns.php @@ -1,4 +1,14 @@ <?php +/** + * Piwik - Open source web analytics + * + * @link http://piwik.org + * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later + * @version $Id$ + * + * @package Piwik_ViewDataTable + */ + require_once "ViewDataTable/HtmlTable.php"; class Piwik_ViewDataTable_HtmlTable_AllColumns extends Piwik_ViewDataTable_HtmlTable diff --git a/core/ViewDataTable/HtmlTable/Goals.php b/core/ViewDataTable/HtmlTable/Goals.php index 4219e72500..9b60bb18b8 100644 --- a/core/ViewDataTable/HtmlTable/Goals.php +++ b/core/ViewDataTable/HtmlTable/Goals.php @@ -1,4 +1,14 @@ <?php +/** + * Piwik - Open source web analytics + * + * @link http://piwik.org + * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later + * @version $Id$ + * + * @package Piwik_ViewDataTable + */ + require_once "ViewDataTable/HtmlTable.php"; class Piwik_ViewDataTable_HtmlTable_Goals extends Piwik_ViewDataTable_HtmlTable diff --git a/core/iView.php b/core/iView.php index 6c21b1e94f..7702ba6c87 100644 --- a/core/iView.php +++ b/core/iView.php @@ -4,9 +4,9 @@ * * @link http://piwik.org * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later - * @version $Id$ + * @version $Id: $ * - * @package Piwik_Visualization + * @package Piwik */ /** |