/** * @brief Add a column to the form data table * @details Simple exec SQL Statement, with no Event LOG injection * * @author Ernesto J Rodriguez (Certun) <*****@*****.**> * @version Vega 1.0 * @copyright Gnu Public License (GPLv3) * * @param $xtype {string} field xtype * @return mixed */ private function addFieldModel($xtype) { $type = $xtype == 'checkbox' ? 'bool' : 'string'; $array = array('model' => $this->model, 'field' => array('name' => $this->name, 'type' => $type)); return MatchaModel::addFieldsToModel($array); }