src/Generators/HtmlGenerator.php
public function getPopulation($config)
    {
        if ($config['populated'] && ($config['name'] !== $config['objectValue'])) {

            if ($config['type'] == 'date' && method_exists($config['objectValue'], 'format')) {
                $format = (isset($config['format'])) ? $config['format'] : 'Y-m-d';
                $config['objectValue'] = $config['objectValue']->format($format);
            }

            return 'value="'.htmlspecialchars($config['objectValue']).'"';
        }

        return '';
    }
public function getPopulation($config)
    {
        if ($config['populated'] && ($config['name'] !== $config['objectValue'])) {

            if ($config['type'] == 'date' && method_exists($config['objectValue'], 'format')) {
                $format = (isset($config['format'])) ? $config['format'] : 'Y-m-d';
                $config['objectValue'] = $config['objectValue']->format($format);
            }

            return 'value="'.htmlspecialchars($config['objectValue']).'"';
        }

        return '';
    }
public function getPopulation ( $ config ) { if ( $ config [ 'populated' ] && ( $ config [ 'name' ] !== $ config [ 'objectValue' ] ) ) { if ( $ config [ 'type' ] == 'date' && method_exists ( $ config [ 'objectValue' ] , 'format' ) ) { $ format = ( isset ( $ config [ 'format' ] ) ) ? $ config [ 'format' ] : 'Y-m-d' ; $ config [ 'objectValue' ] = $ config [ 'objectValue' ] -> format ( $ format ) ; } return 'value="' . htmlspecialchars ( $ config [ 'objectValue' ] ) . '"' ; } return '' ; }
Get the population.

@param array $config

@return string
Get the population .