<?php

/**
 * Goweb Sitemanager 5 Framework
 * 
 * @version    5.0.0
 * @category   Goweb
 * @package    Goweb_Db
 * @subpackage Model
 * @author     I&D <dev@goweb.pt>, Pedro Pinto <ppinto@goweb.pt>
 * @copyright  2009 (c) Goweb (http://www.goweb.pt)
 */

/**
 * Goweb_Db_Model_Col
 */
Goweb::loadClass('Goweb_Db_Model_Col');

/**
 * Classe para representar um campo do tipo Char
 *
 * @version    5.0.0
 * @category   Goweb
 * @package    Goweb_Db
 * @subpackage Model
 * @author     I&D <dev@goweb.pt>, Pedro Pinto <ppinto@goweb.pt>
 * @copyright  2009 (c) Goweb (http://www.goweb.pt)
 */
class Goweb_Db_Model_Col_ColorPicker extends Goweb_Db_Model_Col {

    /**
     * Constructor
     * 
     * Paremetros extra:
     *
     * <code>
     * maxlength => (int)    Nemero meximo de carecteres
     * size      => (int )   Nemero de carecteres do elemento do form
     * password  => (bool)   TRUE se for do tipo password
     * form      => (string) Tipo de elemento do FORM
     * options   => (array)  Array com opcoes
     * </code>
     *
     * @param  array  $param  Paremetros do campo
     */
    public function __construct($params) {
        $this->_params['type'] = 'ColorPicker';
        $this->_params['maxlength'] = 50;
        $this->_params['size'] = 30;
        $this->_params['form'] = 'ColorPicker';
        $this->_params['options'] = null;
        parent::__construct($params);
    }
}
