public function getLayoutForUser($login, $idDashboard)
    {
        $return = $this->getModel()->getLayoutForUser($login, $idDashboard);

        if (count($return) == 0) {
            return false;
        }

        return $return[0]['layout'];
    }
public function getLayoutForUser($login, $idDashboard)
    {
        $return = $this->getModel()->getLayoutForUser($login, $idDashboard);

        if (count($return) == 0) {
            return false;
        }

        return $return[0]['layout'];
    }
public function getLayoutForUser ( $ login , $ idDashboard ) { $ return = $ this -> getModel ( ) -> getLayoutForUser ( $ login , $ idDashboard ) ; if ( count ( $ return ) == 0 ) { return false ; } return $ return [ 0 ] [ 'layout' ] ; }
Returns the layout in the DB for the given user, or false if the layout has not been set yet.
Parameters must be checked BEFORE this function call

@param string $login
@param int $idDashboard

@return bool|string
Returns the layout in the DB for the given user or false if the layout has not been set yet . Parameters must be checked BEFORE this function call