Skip to content
This repository has been archived by the owner on Jul 14, 2021. It is now read-only.

function _return_type in BF_Model #1291

Open
cysunshine opened this issue Dec 6, 2017 · 0 comments
Open

function _return_type in BF_Model #1291

cysunshine opened this issue Dec 6, 2017 · 0 comments

Comments

@cysunshine
Copy link

According to the comments "If the type is 'array' or 'json', simply use the array version", but it seems that the return statement does not.

protected function _return_type($multi = false)
{
$method = $multi ? 'result' : 'row';

    // If the type is 'array' or 'json', simply use the array version of the
    // function, since the database library doesn't support json directly.
    return $this->temp_return_type == 'array' ? "{$method}_array" : $method;
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant