private function isStringDQLQuery($value)
    {
        $keysWord = array(
            "SELECT ",
            " FROM ",
            " WHERE "
        );

        foreach ($keysWord as $keyWord) {
            if (stripos($value, $keyWord) !== false) {
                return true;
            }
        }

        return false;
    }
private function isStringDQLQuery($value)
    {
        $keysWord = array(
            "SELECT ",
            " FROM ",
            " WHERE "
        );

        foreach ($keysWord as $keyWord) {
            if (stripos($value, $keyWord) !== false) {
                return true;
            }
        }

        return false;
    }
private function isStringDQLQuery ( $ value ) { $ keysWord = array ( "SELECT " , " FROM " , " WHERE " ) ; foreach ( $ keysWord as $ keyWord ) { if ( stripos ( $ value , $ keyWord ) !== false ) { return true ; } } return false ; }
Check if a sring is a DQL query

@param string $value
@return boolean
Check if a sring is a DQL query