<?php

class ConverterCLOB implements IConverter
{

    public function init($properties)
    {
    }

    public function convertFrom($value,$object)
    {
        $db = $object->getDb();
        $v = $db->LOBSave($value, 'CLOB');
        return $v;
    }

    public function convertTo($value,$object)
    {
        return $value;
    }

    public function convertColumn($value,$object)
    {
        $db = $object->getDb();
        return $db->LOBLoad($value, 'CLOB');
    }

    public function convertWhere($value,$object)
    {
        return $value;
    }

}
?>
