ExpParser_SearchFilter_Core Class Reference

Parses a global search string, of syntax similar to: h:linux or windows and s:ping. More...

Inheritance diagram for ExpParser_SearchFilter_Core:
ExpParser_Core

Public Member Functions

 getLastString ()
 Return the type of last string/name specified in the query.
 getLastObject ()
 Return the type of last object specified in the query.

Protected Member Functions

 run ()
 Entrypoint to start the parsing.
 criteria ()
 Parse a criteria (table:string or string or string).
 acceptUnquotedUntil ($keywordlist=false)
 Get everything to a given token.
 expectUnquotedUntil ($keywordlist=false)
 Expect that there is anything left in the buffer, and get everything up until next keyword.

Protected Attributes

 $objects
 List of table shortcuts for searching.
 $last_object = false
 Last object found in the search string.
 $last_string = false
 Last string in the search query, for auto-complete.

Detailed Description

Parses a global search string, of syntax similar to: h:linux or windows and s:ping.


Member Function Documentation

ExpParser_SearchFilter_Core::getLastObject (  ) 

Return the type of last object specified in the query.

Useful for autocomplete

Returns:
string
ExpParser_SearchFilter_Core::getLastString (  ) 

Return the type of last string/name specified in the query.

Useful for autocomplete

Returns:
string

Field Documentation

ExpParser_SearchFilter_Core::$objects [protected]
Initial value:
 array(
                        'h'  => 'hosts',
                        's'  => 'services',
                        'c'  => 'comments',
                        'hg' => 'hostgroups',
                        'sg' => 'servicegroups',
                        'si' => '_si'
                        )

List of table shortcuts for searching.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables

Generated on 4 Apr 2014 for ninja by  doxygen 1.6.1