public function getDefaultValues($table)
    {
        $scheme = $this->getScheme($table);
        $values = array();
        foreach ($scheme['fields'] as $name => $info) {

            if (array_key_exists('default', $info)) {
                $values[$name] = $info['default'];
                continue;
            }

            if (!empty($info['serialize'])) {
                $values[$name] = array();
            }
        }

        return $values;
    }
public function getDefaultValues($table)
    {
        $scheme = $this->getScheme($table);
        $values = array();
        foreach ($scheme['fields'] as $name => $info) {

            if (array_key_exists('default', $info)) {
                $values[$name] = $info['default'];
                continue;
            }

            if (!empty($info['serialize'])) {
                $values[$name] = array();
            }
        }

        return $values;
    }
public function getDefaultValues ( $ table ) { $ scheme = $ this -> getScheme ( $ table ) ; $ values = array ( ) ; foreach ( $ scheme [ 'fields' ] as $ name => $ info ) { if ( array_key_exists ( 'default' , $ info ) ) { $ values [ $ name ] = $ info [ 'default' ] ; continue ; } if ( ! empty ( $ info [ 'serialize' ] ) ) { $ values [ $ name ] = array ( ) ; } } return $ values ; }
Returns an array of default field values for the given table
@param string $table
@return array
Returns an array of default field values for the given table