PageRenderTime 11ms CodeModel.GetById 2ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/php/component/box_external_repository_table/box_external_repository_table.class.php

https://bitbucket.org/chamilo/chamilo-ext-repo-box-dev/
PHP | 30 lines | 20 code | 3 blank | 7 comment | 0 complexity | 15bc4a19830dd332b9ed102dbc969dc5 MD5 | raw file
 1<?php
 2namespace common\extensions\external_repository_manager\implementation\box;
 3use common\libraries\ObjectTable;
 4/**
 5 * Table to display a set of box external repository objects.
 6 */
 7require_once dirname(__file__) . '/box_external_repository_table_cell_renderer.class.php';
 8require_once dirname(__file__) . '/box_external_repository_table_data_provider.class.php';
 9require_once dirname(__file__) . '/box_external_repository_table_column_model.class.php';
10
11class BoxExternalRepositoryTable extends ObjectTable
12{
13    const DEFAULT_NAME = 'box_external_repository_table';
14
15    /**
16     * Constructor
17     * @see ContentObjectTable::ContentObjectTable()
18     */
19    function __construct($browser, $parameters, $condition)
20    {
21        $model = new BoxExternalRepositoryTableColumnModel();
22        $renderer = new BoxExternalRepositoryTableCellRenderer($browser);
23        $data_provider = new BoxExternalRepositoryTableDataProvider($browser, $condition);
24        parent :: __construct($data_provider, self :: DEFAULT_NAME, $model, $renderer);
25        
26        $this->set_additional_parameters($parameters);
27        $this->set_default_row_count(20);
28    }
29}
30?>