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

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

https://bitbucket.org/chamilo/chamilo-ext-repo-box-dev/
PHP | 45 lines | 24 code | 4 blank | 17 comment | 1 complexity | d867407b8838b434b415e3c0d19a5012 MD5 | raw file
 1<?php
 2namespace common\extensions\external_repository_manager\implementation\box;
 3
 4use common\extensions\external_repository_manager\DefaultExternalRepositoryObjectTableColumnModel;
 5
 6use common\libraries\ObjectTableColumn;
 7use common\libraries\StaticTableColumn;
 8/**
 9 * $Id: repository_browser_table_column_model.class.php 204 2009-11-13 12:51:30Z kariboe $
10 * @package repository.lib.repository_manager.component.browser
11 */
12/**
13 * Table column model for the repository browser table
14 */
15class BoxExternalRepositoryTableColumnModel extends DefaultExternalRepositoryObjectTableColumnModel
16{
17    /**
18     * The tables modification column
19     */
20    private static $modification_column;
21
22    /**
23     * Constructor
24     */
25    function __construct()
26    {
27        parent :: __construct();
28        $this->set_default_order_column(1);
29        $this->add_column(self :: get_modification_column());
30    }
31
32    /**
33     * Gets the modification column
34     * @return ContentObjectTableColumn
35     */
36    static function get_modification_column()
37    {
38        if (! isset(self :: $modification_column))
39        {
40            self :: $modification_column = new StaticTableColumn('');
41        }
42        return self :: $modification_column;
43    }
44}
45?>