Prado\Data\ActiveRecord\Scaffold\InputBuilder\TMysqlScaffoldInput::getControlValue PHP Method

getControlValue() protected method

protected getControlValue ( $container, $column, $record )
    protected function getControlValue($container, $column, $record)
    {
        $dbtype = trim(str_replace(array('unsigned', 'zerofill'), array('', ''), strtolower($column->getDbType())));
        switch ($dbtype) {
            case 'date':
                return $container->findControl(self::DEFAULT_ID)->getDate();
            case 'year':
                return $container->findControl(self::DEFAULT_ID)->getSelectedValue();
            case 'time':
                return $this->getTimeValue($container, $column, $record);
            case 'datetime':
            case 'timestamp':
                return $this->getDateTimeValue($container, $column, $record);
            case 'tinyint':
                return $this->getIntBooleanValue($container, $column, $record);
            case 'set':
                return $this->getSetValue($container, $column, $record);
            case 'enum':
                return $this->getEnumValue($container, $column, $record);
            default:
                return $this->getDefaultControlValue($container, $column, $record);
        }
    }