Overview

Packages

  • Horde
    • Form
    • MIME
      • Viewer
    • Scheduler
  • None
  • Whups
    • UnitTests

Classes

  • Horde_Core_Ui_VarRenderer_whups
  • Whups
  • Whups_Ajax_Imple_ContactAutoCompleter
  • Whups_Api
  • Whups_Driver
  • Whups_Driver_Sql
  • Whups_Form_AddComment
  • Whups_Form_Admin_AddAttribute
  • Whups_Form_Admin_AddPriority
  • Whups_Form_Admin_AddQueue
  • Whups_Form_Admin_AddReply
  • Whups_Form_Admin_AddState
  • Whups_Form_Admin_AddType
  • Whups_Form_Admin_AddUser
  • Whups_Form_Admin_AddVersion
  • Whups_Form_Admin_CloneType
  • Whups_Form_Admin_DefaultPriority
  • Whups_Form_Admin_DefaultState
  • Whups_Form_Admin_DeleteAttribute
  • Whups_Form_Admin_DeletePriority
  • Whups_Form_Admin_DeleteQueue
  • Whups_Form_Admin_DeleteReply
  • Whups_Form_Admin_DeleteState
  • Whups_Form_Admin_DeleteType
  • Whups_Form_Admin_DeleteVersion
  • Whups_Form_Admin_EditAttributeStepOne
  • Whups_Form_Admin_EditAttributeStepTwo
  • Whups_Form_Admin_EditPriorityStepOne
  • Whups_Form_Admin_EditPriorityStepTwo
  • Whups_Form_Admin_EditQueueStepOne
  • Whups_Form_Admin_EditQueueStepTwo
  • Whups_Form_Admin_EditReplyStepOne
  • Whups_Form_Admin_EditReplyStepTwo
  • Whups_Form_Admin_EditStateStepOne
  • Whups_Form_Admin_EditStateStepTwo
  • Whups_Form_Admin_EditTypeStepOne
  • Whups_Form_Admin_EditTypeStepTwo
  • Whups_Form_Admin_EditUser
  • Whups_Form_Admin_EditVersionStepOne
  • Whups_Form_Admin_EditVersionStepTwo
  • Whups_Form_InsertBranch
  • Whups_Form_Query_AttributeCriterion
  • Whups_Form_Query_ChooseNameForLoad
  • Whups_Form_Query_ChooseNameForSave
  • Whups_Form_Query_DateCriterion
  • Whups_Form_Query_Delete
  • Whups_Form_Query_GroupCriterion
  • Whups_Form_Query_Parameter
  • Whups_Form_Query_PropertyCriterion
  • Whups_Form_Query_TextCriterion
  • Whups_Form_Query_UserCriterion
  • Whups_Form_Renderer_Comment
  • Whups_Form_Search
  • Whups_Form_SendReminder
  • Whups_Form_Ticket_CreateStepFour
  • Whups_Form_Ticket_CreateStepOne
  • Whups_Form_Ticket_CreateStepThree
  • Whups_Form_Ticket_CreateStepTwo
  • Whups_Form_Ticket_Edit
  • Whups_Form_TicketDetails
  • Whups_LoginTasks_SystemTask_Upgrade
  • Whups_Mail
  • Whups_Query
  • Whups_Query_Manager
  • Whups_Reports
  • Whups_Ticket
  • Whups_View_Base
  • Whups_View_Results
  • Whups_View_SavedQueries
  • Overview
  • Package
  • Class
  • Tree

Class Whups_Query

Package: Whups
Located at Query.php
Methods summary
public
# __construct( Whups_Query_Manager & $qManager, array $qDetails = array() )

Constructor

Constructor

Parameters

$qManager
$qDetails
public static
# pathToString( mixed & $path )
public static
# stringToPath( mixed $pathstring )
public static array
# textOperators( )

Returns human readable descriptions of all operator types.

Returns human readable descriptions of all operator types.

Returns

array
Hash with operator types and descriptions.
public boolean
# hasPermission( string $userid, integer $permission, string $creator = null )

Checks to see if a user has a given permission.

Checks to see if a user has a given permission.

Parameters

$userid
The userid of the user.
$permission
A Horde_Perms::* constant to test for.
$creator
The creator of the event.

Returns

boolean
Whether or not $userid has $permission.
public
# save( )

Saves any changes to this object to the backend permanently. New objects are added instead.

Saves any changes to this object to the backend permanently. New objects are added instead.

public
# delete( )

Delete this object from the backend permanently.

Delete this object from the backend permanently.

public string
# feedLink( )

Returns a tag for this query's feed.

Returns a tag for this query's feed.

Returns

string
A full tag.
public
# getTabs( Horde_Variables $vars )

Tab operations for this query.

Tab operations for this query.

Params

Horde_Variables
public string
# pathToForm( Horde_Variables & $vars )

Path to form

Path to form

Parameters

$vars

Returns

string

Throws

Whups_Exception
public
# deleteNode( mixed $pathstring )
public
# hoist( mixed $pathstring )
public
# insertBranch( mixed $pathstring, mixed $type )
public
# insertCriterion( mixed $pathstring, mixed $criterion, mixed $cvalue, mixed $operator, mixed $value )
public
# walk( mixed & $obj, mixed $method )

Top down traversal.

Top down traversal.

public
# reduce( mixed $method, mixed & $vars )

Bottom up traversal.

Bottom up traversal.

Constants summary
integer TYPE_AND

Mode types.

Mode types.

# 1
integer TYPE_OR
# 2
integer TYPE_NOT
# 3
integer TYPE_CRITERION
# 4
integer CRITERION_ID

Criterion types.

Criterion types.

# 1
integer CRITERION_QUEUE
# 2
integer CRITERION_TYPE
# 3
integer CRITERION_STATE
# 4
integer CRITERION_PRIORITY
# 5
integer CRITERION_OWNERS
# 7
integer CRITERION_REQUESTER
# 8
integer CRITERION_GROUPS
# 9
integer CRITERION_ADDED_COMMENT
# 11
integer CRITERION_COMMENT
# 12
integer CRITERION_SUMMARY
# 13
integer CRITERION_ATTRIBUTE
# 14
integer CRITERION_VERSION
# 15
integer CRITERION_TIMESTAMP
# 16
integer CRITERION_UPDATED
# 17
integer CRITERION_RESOLVED
# 18
integer CRITERION_ASSIGNED
# 19
integer CRITERION_DUE
# 20
integer OPERATOR_GREATER

Operators for integer fields.

Operators for integer fields.

# 1
integer OPERATOR_LESS
# 2
integer OPERATOR_EQUAL
# 3
integer OPERATOR_CI_SUBSTRING

Operators for text fields.

Operators for text fields.

# 4
integer OPERATOR_CS_SUBSTRING
# 5
integer OPERATOR_WORD
# 6
integer OPERATOR_PATTERN
# 7
Properties summary
public integer $id

Query id.

Query id.

#
public string $name

The full name of the query.

The full name of the query.

#
public string $slug

The query slug (short name).

The query slug (short name).

#
public array $query
# array( 'type' => Whups_Query::TYPE_AND, 'children' => array())
public array $parameters
# array()
API documentation generated by ApiGen