@@ -32,7 +32,14 @@ abstract class Piwik_API_DataTableManipulator
3232 protected $ request ;
3333
3434 private $ apiMethodForSubtable ;
35-
35+
36+ /**
37+ * Constructor
38+ *
39+ * @param bool $apiModule
40+ * @param bool $apiMethod
41+ * @param array $request
42+ */
3643 public function __construct ($ apiModule =false , $ apiMethod =false , $ request =array ()) {
3744 $ this ->apiModule = $ apiModule ;
3845 $ this ->apiMethod = $ apiMethod ;
@@ -43,7 +50,8 @@ public function __construct($apiModule=false, $apiMethod=false, $request=array()
4350 * This method can be used by subclasses to iterate over data tables that might be
4451 * data table arrays. It calls back the template method self::doManipulate for each table.
4552 * This way, data table arrays can be handled in a transparent fashion.
46- * @param Piwik_DataTable_Array|Piwik_DataTable $dataTable
53+ *
54+ * @param Piwik_DataTable_Array|Piwik_DataTable $dataTable
4755 * @throws Exception
4856 * @return Piwik_DataTable_Array|Piwik_DataTable
4957 */
@@ -82,8 +90,9 @@ protected function manipulate($dataTable) {
8290
8391 /**
8492 * Template method called from self::manipulate
85- * @param Piwik_DataTable $dataTable
86- * @param bool|string $date
93+ *
94+ * @param Piwik_DataTable $dataTable
95+ * @param bool|string $date
8796 * @return
8897 */
8998 protected abstract function doManipulate (Piwik_DataTable $ dataTable , $ date =false );
@@ -92,8 +101,8 @@ protected abstract function doManipulate(Piwik_DataTable $dataTable, $date=false
92101 * Load the subtable for a row.
93102 * Returns null if none is found.
94103 *
95- * @param Piwik_Datatable_Row $row
96- * @param bool $date
104+ * @param Piwik_Datatable_Row $row
105+ * @param bool|string $date
97106 * @throws Exception
98107 * @return Piwik_DataTable
99108 */
@@ -144,12 +153,17 @@ protected function loadSubtable($row, $date=false) {
144153 * In this method, subclasses can clean up the request array for loading subtables
145154 * in order to make Piwik_API_ResponseBuilder behave correctly (e.g. not trigger the
146155 * manipulator again).
156+ *
147157 * @param $request
148158 * @return
149159 */
150160 protected abstract function manipulateSubtableRequest (&$ request );
151161
152- /** Extract the API method for loading subtables from the meta data */
162+ /**
163+ * Extract the API method for loading subtables from the meta data
164+ *
165+ * @return string
166+ */
153167 private function getApiMethodForSubtable ()
154168 {
155169 if (!$ this ->apiMethodForSubtable )
0 commit comments