protected static function _getRecordClass($record)
    {
        $static = get_called_class();

        if (!static::fieldExists('Class')) {
            return $static;
        }

        $columnName = static::_cn('Class');

        if (!empty($record[$columnName]) && is_subclass_of($record[$columnName], $static)) {
            return $record[$columnName];
        } else {
            return $static;
        }
    }
protected static function _getRecordClass($record)
    {
        $static = get_called_class();

        if (!static::fieldExists('Class')) {
            return $static;
        }

        $columnName = static::_cn('Class');

        if (!empty($record[$columnName]) && is_subclass_of($record[$columnName], $static)) {
            return $record[$columnName];
        } else {
            return $static;
        }
    }
protected static function _getRecordClass ( $ record ) { $ static = get_called_class ( ) ; if ( ! static :: fieldExists ( 'Class' ) ) { return $ static ; } $ columnName = static :: _cn ( 'Class' ) ; if ( ! empty ( $ record [ $ columnName ] ) && is_subclass_of ( $ record [ $ columnName ] , $ static ) ) { return $ record [ $ columnName ] ; } else { return $ static ; } }
Returns class name for instantiating given record
@param array $record record
@return string class name
Returns class name for instantiating given record