protected function isId($input)
    {
        // Assume false result
        $result = false;

        // Make the search easier
        $input = strtolower($input);

        // We got the Id field if the first 2 or the last 2 characters are === id (e.g. IdMessages, MessageId, Id, ...)
        if (substr($input, 0, 2) === 'id' || substr($input, -2, 2) === 'id') {
            $result = true;
        }

        return $result;
    }
protected function isId($input)
    {
        // Assume false result
        $result = false;

        // Make the search easier
        $input = strtolower($input);

        // We got the Id field if the first 2 or the last 2 characters are === id (e.g. IdMessages, MessageId, Id, ...)
        if (substr($input, 0, 2) === 'id' || substr($input, -2, 2) === 'id') {
            $result = true;
        }

        return $result;
    }
protected function isId ( $ input ) { // Assume false result $ result = false ; // Make the search easier $ input = strtolower ( $ input ) ; // We got the Id field if the first 2 or the last 2 characters are === id (e.g. IdMessages, MessageId, Id, ...) if ( substr ( $ input , 0 , 2 ) === 'id' || substr ( $ input , - 2 , 2 ) === 'id' ) { $ result = true ; } return $ result ; }
Returns boolean status if input is Id field.

@param string $input The input to check

@author Benjamin Carl <opensource@clickalicious.de>

@return bool TRUE if field is Id field, otherwise FALSE
Returns boolean status if input is Id field .