src/Easy/Element/ColumnShare.php
public function render()
    {
        $style = $this->getStyle();
        $text = $this->getText();
        $id = $this->objectName;
        $func = $this->getFunction();

        switch ($this->getValue()) {
            case "0":
                $image_url = $this->myPrivateImg;
                break;
            case "1":
                $image_url = $this->mySharedImg;
                break;
            case "2":
                $image_url = $this->groupSharedImg;
                break;
            case "3":
                $image_url = $this->otherSharedImg;
                break;
            case "4":
                $image_url = $this->myAssignedImg;
                break;
            case "5":
                $image_url = $this->myDistributedImg;
                break;
            default:
                if ($this->defaultImg == '{OPENBIZ_RESOURCE_URL}/common/images/icon_data_shared_other.gif') {
                    $this->defaultImg = $this->otherSharedImg;
                }
                $image_url = $this->defaultImg;
                break;
        }

        if (preg_match("/\{.*\}/si", $image_url)) {
            $formobj = $this->getFormObj();
            $image_url = Expression::evaluateExpression($image_url, $formobj);
        } else {
            $image_url = Openbizx::$app->getImageUrl() . "/" . $image_url;
        }
        if ($this->width) {
            $width = "width=\"$this->width\"";
        }
        if ($this->link) {
            $link = $this->getLink();
            $target = $this->getTarget();
            $sHTML = "<a   id=\"$id\" href=\"$link\" $target $func $style><img $width src='$image_url' /></a>";
        } else {
            $sHTML = "<img id=\"$id\"  alt=\"" . $text . "\" title=\"" . $text . "\" $width src='$image_url' />";
        }
        return $sHTML;
    }
public function render()
    {
        $style = $this->getStyle();
        $text = $this->getText();
        $id = $this->objectName;
        $func = $this->getFunction();

        switch ($this->getValue()) {
            case "0":
                $image_url = $this->myPrivateImg;
                break;
            case "1":
                $image_url = $this->mySharedImg;
                break;
            case "2":
                $image_url = $this->groupSharedImg;
                break;
            case "3":
                $image_url = $this->otherSharedImg;
                break;
            case "4":
                $image_url = $this->myAssignedImg;
                break;
            case "5":
                $image_url = $this->myDistributedImg;
                break;
            default:
                if ($this->defaultImg == '{OPENBIZ_RESOURCE_URL}/common/images/icon_data_shared_other.gif') {
                    $this->defaultImg = $this->otherSharedImg;
                }
                $image_url = $this->defaultImg;
                break;
        }

        if (preg_match("/\{.*\}/si", $image_url)) {
            $formobj = $this->getFormObj();
            $image_url = Expression::evaluateExpression($image_url, $formobj);
        } else {
            $image_url = Openbizx::$app->getImageUrl() . "/" . $image_url;
        }
        if ($this->width) {
            $width = "width=\"$this->width\"";
        }
        if ($this->link) {
            $link = $this->getLink();
            $target = $this->getTarget();
            $sHTML = "<a   id=\"$id\" href=\"$link\" $target $func $style><img $width src='$image_url' /></a>";
        } else {
            $sHTML = "<img id=\"$id\"  alt=\"" . $text . "\" title=\"" . $text . "\" $width src='$image_url' />";
        }
        return $sHTML;
    }
Render element, according to the mode

@return string HTML text