function Install($column_id = 1, $row_id = 0) { $this->params['num_rows'] = $this->max_length; // defaults to 20 rows $this->params['today_minus'] = '0'; // defaults to today parent::Install($column_id, $row_id); }
function Install($column_id = 1, $row_id = 0) { global $db; // fetch the pages params to copy to new install $result = $db->Execute("select params from " . TABLE_USERS_PROFILES . "\n\t \t where menu_id = '" . $this->menu_id . "' and dashboard_id = '" . $this->dashboard_id . "'"); // just need one $this->default_params = unserialize($result->fields['params']); parent::Install($column_id, $row_id); }