domci on queue*
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@5265 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
13
queue.php
13
queue.php
@@ -16,6 +16,8 @@ class queue
|
|||||||
private $queue = null;
|
private $queue = null;
|
||||||
|
|
||||||
/** Connect to the queue
|
/** Connect to the queue
|
||||||
|
* @param string $dsn The DSN to connect to queue
|
||||||
|
* @return $this;
|
||||||
*/
|
*/
|
||||||
public function connect ($dsn)
|
public function connect ($dsn)
|
||||||
{
|
{
|
||||||
@@ -24,10 +26,10 @@ class queue
|
|||||||
|
|
||||||
/** Add a new entry to the end of the queue
|
/** Add a new entry to the end of the queue
|
||||||
* @param mixed $entry The entry to add
|
* @param mixed $entry The entry to add
|
||||||
|
* @return $this;
|
||||||
*/
|
*/
|
||||||
public function add ($entry)
|
public function add ($entry)
|
||||||
{
|
{
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -36,10 +38,16 @@ class queue
|
|||||||
*/
|
*/
|
||||||
public function getAll ()
|
public function getAll ()
|
||||||
{
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get the number of entries in the queue
|
||||||
|
*/
|
||||||
|
public function count ()
|
||||||
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Clear all the entries of the queue
|
/** Clear all the entries of the queue
|
||||||
|
* @return $this;
|
||||||
*/
|
*/
|
||||||
public function clear ()
|
public function clear ()
|
||||||
{
|
{
|
||||||
@@ -53,7 +61,6 @@ class queue
|
|||||||
*/
|
*/
|
||||||
public function getFirst ($delete = false)
|
public function getFirst ($delete = false)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Get the last entry in the queue with optional removing of the entry
|
/** Get the last entry in the queue with optional removing of the entry
|
||||||
@@ -63,7 +70,6 @@ class queue
|
|||||||
*/
|
*/
|
||||||
public function getLast ($delete = false)
|
public function getLast ($delete = false)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Get X entries starting at position Y
|
/** Get X entries starting at position Y
|
||||||
@@ -74,6 +80,5 @@ class queue
|
|||||||
*/
|
*/
|
||||||
public function getRange ($start, $number, $delete = false)
|
public function getRange ($start, $number, $delete = false)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,6 +21,8 @@ class queuefile extends queue
|
|||||||
private $queue = null;
|
private $queue = null;
|
||||||
|
|
||||||
/** Connect to the queue. Create it if not exists
|
/** Connect to the queue. Create it if not exists
|
||||||
|
* @param string $dsn The DSN to connect to queue
|
||||||
|
* @return $this;
|
||||||
*/
|
*/
|
||||||
public function connect ($dsn)
|
public function connect ($dsn)
|
||||||
// {{{
|
// {{{
|
||||||
@@ -41,6 +43,7 @@ class queuefile extends queue
|
|||||||
|
|
||||||
/** Add a new entry to the end of the queue
|
/** Add a new entry to the end of the queue
|
||||||
* @param mixed $entry The entry to add
|
* @param mixed $entry The entry to add
|
||||||
|
* @return $this;
|
||||||
*/
|
*/
|
||||||
public function add ($entry)
|
public function add ($entry)
|
||||||
// {{{
|
// {{{
|
||||||
@@ -94,6 +97,7 @@ class queuefile extends queue
|
|||||||
// }}}
|
// }}}
|
||||||
|
|
||||||
/** Clear all the entries of the queue
|
/** Clear all the entries of the queue
|
||||||
|
* @return $this;
|
||||||
*/
|
*/
|
||||||
public function clear ()
|
public function clear ()
|
||||||
// {{{
|
// {{{
|
||||||
|
|||||||
Reference in New Issue
Block a user