<?php

/**
 * OpenKM, Open Knowledge Management System S.L.  (http://www.openkm.com)
 * Copyright (c) 2006-2018
 *
 * No bytes were intentionally harmed during the development of this application.
 *
 * This program is commercial software; you can use it under the terms of the
 * EULA - OpenKM SDK End User License Agreement as published by OpenKM Knowledge Management System S.L.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * EULA - OpenKM SDK End User License Agreement for more details:
 * http://docs.openkm.com/kcenter/view/licenses/eula-openkm-sdk-end-user-license-agreement.html
 */


namespace openkm\bean\form;

/**
 * Input
 *
 * @author sochoa
 */
class Input extends FormElement {

    const OJB_CLASS = 'com.openkm.bean.form.Input';
    
    const TYPE_TEXT = 'text';
    const TYPE_DATE = 'date';
    const TYPE_LINK = 'link';
    const TYPE_FOLDER = 'folder';

    private $validators = [];
    private $type = self::TYPE_TEXT;
    private $value = "";
    private $data = "";
    private $placeholder = '';
    private $description = '';
    private $readonly = false;

    function __construct() {
        
    }

    /**
     * getValidators
     * @return array
     */
    public function getValidators() {
        return $this->validators;
    }

    public function getType() {
        return $this->type;
    }

    public function getValue() {
        return $this->value;
    }

    public function getData() {
        return $this->data;
    }

    public function getPlaceholder() {
        return $this->placeholder;
    }

    public function getDescription() {
        return $this->description;
    }

    /**
     * 
     * @return bool
     */
    public function isReadonly() {
        return $this->readonly;
    }

    public function setValidators($validators) {
        $this->validators = $validators;
    }

    public function setType($type) {
        $this->type = $type;
    }

    public function setValue($value) {
        $this->value = $value;
    }

    public function setData($data) {
        $this->data = $data;
    }

    public function setPlaceholder($placeholder) {
        $this->placeholder = $placeholder;
    }

    public function setDescription($description) {
        $this->description = $description;
    }

    public function setReadonly($readonly) {
        $this->readonly = $readonly;
    }


}
?>

