HEX
Server: LiteSpeed
System: Linux s1049.use1.mysecurecloudhost.com 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64
User: xedaptot (3356)
PHP: 8.3.31
Disabled: NONE
Upload Files
File: /home/xedaptot/cms.naniguide.com/admin/includes/Column.class.php
<?php
debug_backtrace() || die ("Direct access not permitted");
/**
 * Class of the columns displayed in the listing of a module
 */
class Column
{
    private $name;
    private $label;
    private $type;
    private $value;
    private $table;
    private $fieldRef;
    private $fieldValue;
    private $caseValues;

    public function __construct($name, $label, $type, $table, $fieldRef, $fieldValue, $caseValues)
    {
        $this->name = $name;
        $this->label = $label;
        $this->type = $type;
        $this->values = array();
        $this->table = $table;
        $this->fieldRef = $fieldRef;
        $this->fieldValue = $fieldValue;
        $this->caseValues = $caseValues;
    }
    function getName()
    {
        return $this->name;
    }
    function getType()
    {
        return $this->type;
    }
    function getLabel()
    {
        return $this->label;
    }
    function getValue($row)
    {
        return htmlentities($this->value[$row], ENT_QUOTES, "UTF-8");
    }
    function getTable()
    {
        return $this->table;
    }
    function getFieldRef()
    {
        return $this->fieldRef;
    }
    function getFieldValue()
    {
        return $this->fieldValue;
    }
    function getCaseValue($case)
    {
        return (isset($this->caseValues[$case])) ? htmlentities($this->caseValues[$case], ENT_QUOTES, "UTF-8") : $case;
    }
    function setValue($row, $value)
    {
        $this->value[$row] = $value;
    }
}