pluf2

pluf2 Commit Details


Date:2009-01-07 03:35:01 (15 years 11 months ago)
Author:Loic d'Anterroches
Branch:master
Commit:ed340bd2344111bc1b24685de46fea06655728b6
Parents: 69b8ecde7f6bcec55666cf488c34126a93c6e693
Message:Added a method to add an object to the queue.

Changes:

File differences

src/Pluf/Queue.php
120120
121121
122122
123
124
125
126
127
128
129
130
131
132
123133
124134
}
$this->modif_dtime = gmdate('Y-m-d H:i:s');
}
public static function addTo($object, $action='')
{
$q = new Pluf_Queue();
$q->model_class = $object->_model;
$q->model_id = $object->id;
$q->lock = 0;
$q->action = $action;
$q->create();
}
}

Archive Download the corresponding diff file

Branches

Number of commits:
Page rendered in 0.06133s using 13 queries.