Elgg  Version 1.9
Public Member Functions | Protected Attributes | List of all members
Elgg_Queue_MemoryQueue Class Reference
Inheritance diagram for Elgg_Queue_MemoryQueue:
Elgg_Queue_Queue

Public Member Functions

 __construct ()
 Create a queue. More...
 
 enqueue ($item)
 {Add an item to the queue.
Parameters
mixed$itemItem to add to queue
Returns
bool
} More...
 
 dequeue ()
 {Remove an item from the queue.
Returns
mixed
} More...
 
 clear ()
 {Clear all items from the queue.
Returns
void
} More...
 
 size ()
 {Get the size of the queue.
Returns
int
} More...
 

Protected Attributes

 $queue = array()
 

Detailed Description

Definition at line 14 of file MemoryQueue.php.

Constructor & Destructor Documentation

Elgg_Queue_MemoryQueue::__construct ( )

Create a queue.

Definition at line 22 of file MemoryQueue.php.

Member Function Documentation

Elgg_Queue_MemoryQueue::clear ( )

{Clear all items from the queue.

Returns
void
}

Implements Elgg_Queue_Queue.

Definition at line 43 of file MemoryQueue.php.

Elgg_Queue_MemoryQueue::dequeue ( )

{Remove an item from the queue.

Returns
mixed
}

Implements Elgg_Queue_Queue.

Definition at line 36 of file MemoryQueue.php.

Elgg_Queue_MemoryQueue::enqueue (   $item)

{Add an item to the queue.

Parameters
mixed$itemItem to add to queue
Returns
bool
}

Implements Elgg_Queue_Queue.

Definition at line 29 of file MemoryQueue.php.

Elgg_Queue_MemoryQueue::size ( )

{Get the size of the queue.

Returns
int
}

Implements Elgg_Queue_Queue.

Definition at line 50 of file MemoryQueue.php.

Member Data Documentation

Elgg_Queue_MemoryQueue::$queue = array()
protected

Definition at line 17 of file MemoryQueue.php.


The documentation for this class was generated from the following file: