PageRenderTime 37ms CodeModel.GetById 28ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

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

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