Remove all the {{{ and }}} folding

This commit is contained in:
2022-11-25 20:34:27 +01:00
parent b723f47a44
commit 2d6df0d5f0
35 changed files with 0 additions and 1124 deletions

View File

@@ -29,7 +29,6 @@ class Queuefile extends Queue
* @return $this;
*/
public function connect ($dsn)
// {{{
{
// The DSN format must be file:///tmp/queuefile.txt
if (substr ($dsn, 0, 7) !== "file://")
@@ -43,14 +42,12 @@ class Queuefile extends Queue
$file->touch ($this->queue);
return $this;
}
// }}}
/** Add a new entry to the end of the queue
* @param mixed $entry The entry to add
* @return $this;
*/
public function add ($entry)
// {{{
{
$file = new File ();
$file->lockEX ($this->queue);
@@ -59,14 +56,12 @@ class Queuefile extends Queue
$file->lockUN ($this->queue);
return $this;
}
// }}}
/** Get all the entries of the queue
* @param boolean|null $delete If true, delete the read entry
* @return array
*/
public function getAll ($delete =false)
// {{{
{
$file = new File ();
if ($delete)
@@ -86,12 +81,10 @@ class Queuefile extends Queue
$file->lockUN ($this->queue);
return $entries;
}
// }}}
/** Get the number of entries in the queue
*/
public function count ()
// {{{
{
$file = new File ();
$file->lockSH ($this->queue);
@@ -100,13 +93,11 @@ class Queuefile extends Queue
$file->lockUN ($this->queue);
return $count;
}
// }}}
/** Clear all the entries of the queue
* @return $this;
*/
public function clear ()
// {{{
{
$file = new File ();
$file->lockEX ($this->queue);
@@ -114,7 +105,6 @@ class Queuefile extends Queue
$file->lockUN ($this->queue);
return $this;
}
// }}}
/** Get the first entry in the queue with optional removing of the entry
* @param boolean|null $delete If true, delete the read entry
@@ -122,7 +112,6 @@ class Queuefile extends Queue
* queue (FIFO)
*/
public function getFirst ($delete = false)
// {{{
{
$file = new File ();
if ($delete)
@@ -146,7 +135,6 @@ class Queuefile extends Queue
$file->lockUN ($this->queue);
return $res;
}
// }}}
/** Get the last entry in the queue with optional removing of the entry
* @param boolean|null $delete If true, delete the read entry
@@ -154,7 +142,6 @@ class Queuefile extends Queue
* queue (LIFO)
*/
public function getLast ($delete = false)
// {{{
{
$file = new File ();
if ($delete)
@@ -178,7 +165,6 @@ class Queuefile extends Queue
$file->lockUN ($this->queue);
return $res;
}
// }}}
/** Get X entries starting at position Y
* @param integer $start the starting position (the entries start at position
@@ -188,7 +174,6 @@ class Queuefile extends Queue
* @return array An array of mixed entries
*/
public function getRange ($start, $number, $delete = false)
// {{{
{
$file = new File ();
if ($delete)
@@ -224,5 +209,4 @@ class Queuefile extends Queue
$file->lockUN ($this->queue);
return $res;
}
// }}}
}