Elgg  Version 2.2
 All Classes Namespaces Files Functions Variables Pages
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 15 of file MemoryQueue.php.

Constructor & Destructor Documentation

Elgg\Queue\MemoryQueue::__construct ( )

Create a queue.

Definition at line 23 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 44 of file MemoryQueue.php.

Elgg\Queue\MemoryQueue::dequeue ( )

{Remove an item from the queue.

Returns
mixed
}

Implements Elgg\Queue\Queue.

Definition at line 37 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 30 of file MemoryQueue.php.

Elgg\Queue\MemoryQueue::size ( )

{Get the size of the queue.

Returns
int
}

Implements Elgg\Queue\Queue.

Definition at line 51 of file MemoryQueue.php.

Member Data Documentation

Elgg\Queue\MemoryQueue::$queue = array()
protected

Definition at line 18 of file MemoryQueue.php.


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