コード例 #1
0
    /**
     * Renders this TenantObjectProperty in a column view (e.g. ListView).
     * @param mixed $value The value of the TenantObjectProperty to render.
     */
    public function RenderColumn($value = null)
    {
        if ($this->DataType == null || $this->DataType->ColumnRendererCodeBlob == null) {
            ?>
				<input style="width: 100%;" type="text" id="txtProperty_<?php 
            echo $property->ID;
            ?>
" name="Property_<?php 
            echo $property->ID;
            ?>
" value="<?php 
            if ($value == null) {
                echo $this->DefaultValue;
            } else {
                echo $value;
            }
            ?>
" />
				<?php 
        } else {
            if ($value == null) {
                $this->DataType->RenderColumn($this->DefaultValue);
            } else {
                $this->DataType->RenderColumn($value);
            }
        }
    }