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

/php/component/photobucket_external_repository_table/photobucket_external_repository_table.class.php

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